[Kst] [Bug 121108] Kst assertion failure when line or arrow moved outside of window
George Staikos
staikos at kde.org
Thu Feb 2 12:11:22 CET 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=121108
------- Additional Comments From staikos kde org 2006-02-02 12:11 -------
> + QPoint handlePoint(bool shift, const QPoint& ptFixed, const QPoint&
> pos, double aspect); void pressMoveLayoutModeMove(const QPoint& pos, bool
The meaning of this function is entirely unclear.
> void KstTopLevelView::pressMoveLayoutModeEndPoint(const QPoint& pos, bool
And I think all of the fix should go in here.
As far as I can tell, all we need to do is chop the line into the geometry
of the view. This function can already do all the important calculations
internally if it just makes use of the QPoint argument. Unfortunately Qt3's
QRect doesn't ::intersect() well when it isn't normalized, so this patch is
more complicated than it should be.
One other bug I noticed is that the viewline object doesn't track moves
properly, so it sometimes gets desynchronized. This patch also fixes that
problem.
Created an attachment (id=14494)
--> (http://bugs.kde.org/attachment.cgi?id=14494&action=view)
linemoving.patch
More information about the Kst
mailing list