[Kst] extragear/graphics/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Tue Mar 14 00:39:33 CET 2006
This is probably worth backporting to 1.2.1
cbn
On Monday 13 March 2006 11:19, Andrew Walker wrote:
> 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) {
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
More information about the Kst
mailing list