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

List:       kde-commits
Subject:    koffice/filters/kword/rtf/import
From:       Laurent Montel <montel () kde ! org>
Date:       2009-08-08 8:17:59
Message-ID: 1249719479.356344.18471.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1008726 by mlaurent:

Fix iterator


 M  +3 -3      rtfimport.cpp  


--- trunk/koffice/filters/kword/rtf/import/rtfimport.cpp #1008725:1008726
@@ -2423,8 +2423,8 @@
     const RTFFormat* format = &state.format;
     const int styleNum = state.layout.style;
 
-    const QVector<RTFStyle>::ConstIterator endStyleSheet = styleSheet.end();
-    for ( QVector<RTFStyle>::ConstIterator it=styleSheet.begin(); it!=endStyleSheet; \
++it ) +    const QVector<RTFStyle>::ConstIterator endStyleSheet = \
styleSheet.constEnd(); +    for ( QVector<RTFStyle>::ConstIterator \
it=styleSheet.constBegin(); it!=endStyleSheet; ++it )  {
         if ( (*it).layout.style == styleNum )
         {
@@ -2450,7 +2450,7 @@
     // Insert character formatting
     bool hasFormats = false;
 
-    for ( QVector<KWFormat>::ConstIterator it = textState->formats.begin(); it != \
textState->formats.end(); ++it ) +    for ( QVector<KWFormat>::ConstIterator it = \
textState->formats.constBegin(); it != textState->formats.constEnd(); ++it )  {
         if ( (*it).id != 1 || (*it).fmt != *format )
         {


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

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