[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/filters/kword/msword-odf
From:       Jean-Nicolas Artaud <jeannicolasartaud () gmail ! com>
Date:       2010-06-02 10:22:40
Message-ID: 20100602102240.8D209AC8C7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1133733 by artaud:


* Add some imports of bookmarks in a forgotten case

BUG: 239672



 U             texthandler.cpp  
 M  +5 -0      wv2/src/parser9x.cpp  


--- trunk/koffice/filters/kword/msword-odf/wv2/src/parser9x.cpp #1133732:1133733
@@ -819,8 +819,13 @@
             } else if ( m_bookmark ) {
                 if (m_bookmarkText.find(chunk.m_text.substr(index, length), 0) != 0) {
                     processRun( chunk, chp, length, index, currentStart );
+                    if ( m_bookmark ) {
+                        m_bookmarkText = chunk.m_text.substr(index, length);
+                        emitBookmark( m_bookmarkText, 0, chp, length );
+                        m_bookmarkText = "";
                 }
             }
+            }
 
             break;   // should be faster than messing with length...
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic