[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Fri Aug 19 20:09:55 CEST 2005


SVN commit 451015 by rchern:

Don't handle a pressMove when the mouse was never pressed in the first place (could happen if user starts a drag in layout mode but finishes the drag in a drawing tool mode)

 M  +1 -1      kstgfxarrowmousehandler.cpp  
 M  +1 -1      kstgfxellipsemousehandler.cpp  
 M  +1 -1      kstgfxlinemousehandler.cpp  
 M  +1 -1      kstgfxpicturemousehandler.cpp  
 M  +1 -1      kstgfxrectanglemousehandler.cpp  
 M  +1 -1      kstgfxtextmousehandler.cpp  


--- trunk/extragear/graphics/kst/kst/kstgfxarrowmousehandler.cpp #451014:451015
@@ -43,7 +43,7 @@
 
 
 void KstGfxArrowMouseHandler::pressMove(const QPoint& pos, bool shift) {
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   
--- trunk/extragear/graphics/kst/kst/kstgfxellipsemousehandler.cpp #451014:451015
@@ -41,7 +41,7 @@
 
 void KstGfxEllipseMouseHandler::pressMove(const QPoint& pos, bool shift) {
   
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   
--- trunk/extragear/graphics/kst/kst/kstgfxlinemousehandler.cpp #451014:451015
@@ -43,7 +43,7 @@
 
 
 void KstGfxLineMouseHandler::pressMove(const QPoint& pos, bool shift) {
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   
--- trunk/extragear/graphics/kst/kst/kstgfxpicturemousehandler.cpp #451014:451015
@@ -35,7 +35,7 @@
 
 void KstGfxPictureMouseHandler::pressMove(const QPoint& pos, bool shift) {
   
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   
--- trunk/extragear/graphics/kst/kst/kstgfxrectanglemousehandler.cpp #451014:451015
@@ -43,7 +43,7 @@
 
 void KstGfxRectangleMouseHandler::pressMove(const QPoint& pos, bool shift) {
 
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   
--- trunk/extragear/graphics/kst/kst/kstgfxtextmousehandler.cpp #451014:451015
@@ -43,7 +43,7 @@
 
 void KstGfxTextMouseHandler::pressMove(const QPoint& pos, bool shift) {
    
-  if (_cancelled) {
+  if (_cancelled || !_mouseDown) {
     return;  
   }
   


More information about the Kst mailing list