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

List:       kde-commits
Subject:    koffice/plugins/textshape
From:       Thomas Zander <zander () kde ! org>
Date:       2010-12-23 15:57:26
Message-ID: 20101223155726.8B9A43E1F8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1208882 by zander:

Make the first counter also have the proper style.

 M  +3 -1      Layout.cpp  


--- trunk/koffice/plugins/textshape/Layout.cpp #1208881:1208882
@@ -2006,13 +2006,15 @@
             bf.setProperty(13471293, variant);
             cursor.mergeBlockFormat(bf);
 
+            const int before = cursor.position();
+            cursor.insertFragment(note->text());
+            cursor.setPosition(before);
             QTextCharFormat cf;
             cf.setVerticalAlignment(QTextCharFormat::AlignSuperScript);
             cursor.mergeCharFormat(cf);
             cursor.insertText(note->label() + ' ');
             cf.setVerticalAlignment(QTextCharFormat::AlignNormal);
             cursor.mergeCharFormat(cf);
-            cursor.insertFragment(note->text());
         }
     }
     if (m_textShape->hasFootnoteDocument())
[prev in list] [next in list] [prev in thread] [next in thread] 

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