[Kst] extragear/graphics/kst/src/libkstapp

George Staikos staikos at kde.org
Tue Aug 1 00:56:48 CEST 2006


Hi Andrew,

Could you please explain this patch and what exactly was wrong, and why this 
is the right fix?

Thanks

Quoting Andrew Walker <arwalker at sumusltd.com>:

> SVN commit 568394 by arwalker:
> 
> BUG:131625 Correctly normalize the new QRect
> 
>  M  +11 -0     kstgfxmousehandlerutils.cpp  
> 
> 
> --- trunk/extragear/graphics/kst/src/libkstapp/kstgfxmousehandlerutils.cpp
> #568393:568394
> @@ -152,6 +152,17 @@
>        newSize.setRight(anchorPoint.x() - int(newHalfWidth));
>      }
>  
> +  if (newSize.width() < 0) {
> +    int width = newSize.width();
> +    newSize.setLeft(newSize.left() + width);
> +    newSize.setRight(width * -1);
> +  }
> +  if (newSize.height() < 0) {
> +    int height = newSize.height();
> +    newSize.setTop(newSize.top() + height);
> +    newSize.setHeight(height * -1);
> +  }
> +      
>      newSize = newSize.normalize();
>  
>      return newSize;
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
> 
> 


-- 
George Staikos 



More information about the Kst mailing list