[Kst] [Bug 121108] Kst assertion failure when line or arrow moved outside of window
George Staikos
staikos at kde.org
Thu Feb 2 22:31:22 CET 2006
On Thursday 02 February 2006 14:14, Barth Netterfield wrote:
> This patch does the correct thing when you drag outside the window.
>
> BUT: if you drag an endpoint outside the parent, but still in the window,
> it similarly truncates. It should not. Rather, it should re-parent (eg,
> to the tlv).
>
> George's patch exhibits a variation of the same behavior: the line remains
> a parent of the original plot, but attemps to extend outside the parent.
> Outside the parent, it flickers, but does not stay around.
Any flicker is due to broken clipping. Reparenting is easy:
while (line->_parent && static_cast<KstViewObject*>(line->_parent) !=
static_cast<KstViewObject*>(this)&& !line->_parent->geometry().contains(line->from()))
{
KstViewObjectPtr p = static_cast<KstViewObject*>(line->_parent);
line->detach();
p->_parent->appendChild(line.data());
}
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list