[Kst] [Bug 127380] textbf and textit not behaving correctly

George Staikos staikos at kde.org
Mon May 15 20:37:42 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=127380         
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2006-05-15 20:37 -------
SVN commit 541207 by staikos:

fix parsing of nested attributes
BUG: 127380


 M  +1 -1      src/libkstmath/labelparser.cpp  
 M  +4 -0      tests/testlabelparser.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/labelparser.cpp #541206:541207
 @ -106,7 +106,7  @
   if (*tail && !(*tail)->locked()) {
     (*tail)->text += c;
   } else {
-    Chunk *f = new Chunk(*tail);
+    Chunk *f = new Chunk(*tail, Chunk::None, false, true);
     f->text += c;
     *tail = f;
   }
--- trunk/extragear/graphics/kst/tests/testlabelparser.cpp #541206:541207
 @ -467,6 +467,10  @
   // FIXME
   delete parsed;
 
+  parsed = Label::parse("\\textbf{\\textit{italicbold}bold}");
+  // FIXME
+  delete parsed;
+
   // more to test...
 }


More information about the Kst mailing list