Summary: | Invalid object coordinates on resize of view object | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Andrew Walker <arwalker> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Andrew Walker
2006-08-01 01:15:03 UTC
Appears to be related to the merge of the view aspect branch. I will back out that merge if the fix isn't obvious. I'm working on it. It's really unfortunate that this stuff wasn't tested thoroughly while it was in the branch. From now on I won't merge any branches unless they're fully tested. 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; The problem is that KstViewObject::move is being called on the plot with an invalid pos of (-1,0). I don't know where this call is originating from, or why it's happening- can anyone more familiar with the architecture explain? Duncan. On Mon, 2006-07-31 at 23:42 +0000, George Staikos wrote: [bugs.kde.org quoted mail] |