incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1387217 - /incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx
Date Tue, 18 Sep 2012 15:34:43 GMT
Author: jsc
Date: Tue Sep 18 15:34:42 2012
New Revision: 1387217

URL: http://svn.apache.org/viewvc?rev=1387217&view=rev
Log:
#119831# check again the node if the bookmark belongs to it (start and end position)

Patch By: jsc
Review By: orw


Modified:
    incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx

Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx?rev=1387217&r1=1387216&r2=1387217&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/filter/ww8/wrtw8nds.cxx Tue Sep 18 15:34:42 2012
@@ -1684,8 +1684,8 @@ bool MSWordExportBase::GetBookmarks( con
             xub_StrLen nBEnd = pMark->GetMarkEnd().nContent.GetIndex();
 
             // Keep only the bookmars starting or ending in the snippet
-            bool bIsStartOk = ( nBStart >= nStt ) && ( nBStart <= nEnd );
-            bool bIsEndOk = ( nBEnd >= nStt ) && ( nBEnd <= nEnd );
+            bool bIsStartOk = ( pMark->GetMarkStart().nNode == nNd ) && ( nBStart
>= nStt ) && ( nBStart <= nEnd );
+            bool bIsEndOk = ( pMark->GetMarkEnd().nNode == nNd ) && ( nBEnd >=
nStt ) && ( nBEnd <= nEnd );
 
             if ( bIsStartOk || bIsEndOk )
                 rArr.push_back( pMark );



Mime
View raw message