[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Wed Dec 15 07:53:39 CET 2004


CVS commit by staikos: 

all testcases pass


  M +1 -1      kst/labelparser.cpp   1.9
  M +0 -1      tests/testlabelparser.cpp   1.6


--- kdeextragear-2/kst/kst/labelparser.cpp  #1.8:1.9
@@ -324,5 +324,5 @@ static Chunk *parseInternal(Chunk *ctail
         // FIXME: do scalar replacement
       default:
-        if (ctail->vOffset != Chunk::None && !ctail->text.isEmpty()) {
+        if (ctail->vOffset != Chunk::None && (!ctail->text.isEmpty() || ctail->group)) {
           ctail = new Chunk(ctail->prev);
         }

--- kdeextragear-2/kst/tests/testlabelparser.cpp  #1.5:1.6
@@ -215,5 +215,4 @@ void doTests() {
   doTest(c->up == 0L);
   doTest(c->down == 0L);
-  printf("[%s]\n", c->text.latin1());
   doTest(c->text == " + 1");
   doTest(c->vOffset == Label::Chunk::None);





More information about the Kst mailing list