[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Dec 20 06:00:30 CET 2005
SVN commit 489907 by staikos:
normalize rects before searching for the child to place the object in now that
the rects are actually invalid
BUG: 118684
M +1 -1 kstgfxarrowmousehandler.cpp
M +3 -2 kstgfxlinemousehandler.cpp
--- trunk/extragear/graphics/kst/kst/kstgfxarrowmousehandler.cpp #489906:489907
@@ -84,7 +84,7 @@
copyDefaults(KstViewObjectPtr(arrow));
arrow->setFrom(_prevBand.topLeft());
arrow->setTo(_prevBand.bottomRight());
- KstViewObjectPtr container = view->findDeepestChild(_prevBand);
+ KstViewObjectPtr container = view->findDeepestChild(_prevBand.normalize());
if (!container) {
container = view;
}
--- trunk/extragear/graphics/kst/kst/kstgfxlinemousehandler.cpp #489906:489907
@@ -22,6 +22,7 @@
#include "kstgfxlinemousehandler.h"
#include "kstgfxmousehandlerutils.h"
#include "kst.h"
+#include "ksdebug.h"
#include "kstdoc.h"
#include "kstviewline.h"
#include "kstviewwidget.h"
@@ -42,7 +43,7 @@
void KstGfxLineMouseHandler::pressMove(KstTopLevelViewPtr view, const QPoint& pos, bool shift, const QRect& geom) {
- Q_UNUSED(geom);
+ Q_UNUSED(geom)
if (_cancelled || !_mouseDown) {
return;
}
@@ -80,7 +81,7 @@
copyDefaults(KstViewObjectPtr(line));
line->setFrom(_prevBand.topLeft());
line->setTo(_prevBand.bottomRight());
- KstViewObjectPtr container = view->findDeepestChild(_prevBand);
+ KstViewObjectPtr container = view->findDeepestChild(_prevBand.normalize());
if (!container) {
container = view;
}
More information about the Kst
mailing list