[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Wed Aug 17 20:12:20 CEST 2005
SVN commit 450248 by rchern:
need for 3.1
M +11 -1 kstviewlabel.cpp
--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #450247:450248
@@ -32,6 +32,7 @@
#include <qapplication.h>
#include <qbitmap.h>
+#include <qmetaobject.h>
#include <qptrstack.h>
#include <stdlib.h>
@@ -537,7 +538,16 @@
void KstViewLabel::setDataPrecision(int prec) {
- int n = kClamp(prec, 0, 16);
+ int n;
+
+ if (prec < 0) {
+ n = 0;
+ } else if (prec > 16) {
+ n = 16;
+ } else {
+ n = prec;
+ }
+
if (n != _dataPrecision) {
setDirty();
_dataPrecision = n;
More information about the Kst
mailing list