[Kst] [Bug 118704] "Samples" field in data wizard is not updated for unused vectors

Andrew Walker arwalker at sumusltd.com
Mon Mar 13 20:20:50 CET 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=118704         
arwalker sumusltd com changed:

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



------- Additional Comments From arwalker sumusltd com  2006-03-13 20:20 -------
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