[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Mon Mar 13 20:19:01 CET 2006


SVN commit 518340 by arwalker:

BUG:118704 Display '-' rather than '0' for objects that do not themselves contain vector entries, but whose slave vectors do.

 M  +9 -3      kstdatamanager_i.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstdatamanager_i.cpp #518339:518340
@@ -260,9 +260,15 @@
           _inUse = inUse;
           setPixmap(2, inUse ? _dm->yesPixmap() : QPixmap());
         }
-        field = QString::number(x->sampleCount());
-        if (text(3) != field) {
-          setText(3, field);
+        if (x->sampleCount() > 0) {
+          field = QString::number(x->sampleCount());
+          if (text(3) != field) {
+            setText(3, field);
+          }
+        } else {
+          if (text(3) != "-") {
+            setText(3, "-");
+          }          
         }
         field = x->propertyString();
         if (text(4) != field) {


More information about the Kst mailing list