[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Aug 18 00:02:17 CEST 2005


SVN commit 450320 by arwalker:

prevent crash resulting from invalid pointer

 M  +3 -0      labelrenderer.cpp  


--- trunk/extragear/graphics/kst/kst/labelrenderer.cpp #450319:450320
@@ -30,6 +30,7 @@
   int oldSize = rc.size;
   int oldY = rc.y;
   int oldX = rc.x;
+  
   while (fi) {
     if (fi->vOffset != Label::Chunk::None) {
       if (fi->vOffset == Label::Chunk::Up) {
@@ -47,12 +48,14 @@
 
     if (fi->group) { // groups have no contents
       fi = fi->next;
+      continue;
     }
 
     if (fi->linebreak) {
       rc.x = oldX;
       rc.y += rc.fontAscent() + rc.fontDescent() + 1;
       fi = fi->next;
+      continue;
     }
 
     if (rc.prevSym != fi->symbol) {


More information about the Kst mailing list