[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Sat Aug 13 00:42:47 CEST 2005


SVN commit 446252 by rchern:

normalize properly when releasing button

 M  +2 -3      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/kst/ksttoplevelview.cpp #446251:446252
@@ -946,7 +946,7 @@
 
 void KstTopLevelView::releasePressLayoutModeResize(const QPoint& pos, bool shift) {
   if (_prevBand.topLeft() != QPoint(-1, -1)) {
-    _prevBand.normalize();
+    _prevBand = _prevBand.normalize();
     _pressTarget->move(_prevBand.topLeft());
     _pressTarget->resize(_prevBand.size());
   }
@@ -995,7 +995,7 @@
 
 void KstTopLevelView::releasePressLayoutModeCentredResize(const QPoint& pos, bool shift) {
   if (_prevBand.topLeft() != QPoint(-1, -1)) {    
-    _prevBand.normalize();    
+    _prevBand = _prevBand.normalize();    
     _pressTarget->move(_prevBand.topLeft());
     _pressTarget->resize(_prevBand.size());
   }
@@ -1569,7 +1569,6 @@
 
 QRect KstTopLevelView::correctHeightForRatio(const QRect& oldRect, double ratio, int direction, int origRight, int origLeft) {
   QRect r = oldRect;
-  printf ("orgRight = %d, origLeft = %d\n", origRight, origLeft);
   if (direction & (LEFT|RIGHT)) {
     int newHeight = (int)(abs(r.width())*ratio);
     int negOne, negOneW;


More information about the Kst mailing list