[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Wed Aug 17 23:23:28 CEST 2005
SVN commit 450307 by rchern:
Needed for 3.1
M +8 -1 kstviewbox.cpp
--- trunk/extragear/graphics/kst/kst/kstviewbox.cpp #450306:450307
@@ -105,7 +105,14 @@
void KstViewBox::setYRound(int rnd) {
- int crnd = kClamp(rnd, 0, 99);
+ int crnd;
+ if (rnd < 0) {
+ crnd = 0;
+ } else if (rnd > 99) {
+ crnd = 99;
+ } else {
+ crnd = rnd;
+ }
if (_yRound != crnd) {
setDirty();
}
More information about the Kst
mailing list