[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Wed Aug 17 23:11:15 CEST 2005
SVN commit 450299 by rchern:
Need for 3.1
M +8 -1 kstviewbox.cpp
--- trunk/extragear/graphics/kst/kst/kstviewbox.cpp #450298:450299
@@ -21,6 +21,7 @@
#include <kglobal.h>
+#include <qmetaobject.h>
#include <qpainter.h>
#include <qmap.h>
#include <qpair.h>
@@ -88,7 +89,13 @@
void KstViewBox::setXRound(int rnd) {
- int crnd = kClamp(rnd, 0, 99);
+ if (rnd < 0) {
+ crnd = 0;
+ } else if (rnd > 99) {
+ crnd = 99;
+ } else {
+ crnt = rnd;
+ }
if (_xRound != crnd) {
setDirty();
}
More information about the Kst
mailing list