[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Sep 26 12:22:09 UTC 2004
CVS commit by okellogg:
onWidget(): Correct the placement of the test for small heights.
M +2 -2 messagewidget.cpp 1.48
--- kdesdk/umbrello/umbrello/messagewidget.cpp #1.47:1.48
@@ -215,6 +215,4 @@ bool MessageWidget::onWidget(const QPoin
return false;
const int tolerance = 4; // pixels
- if (getHeight() <= 2 * tolerance)
- return true;
const int pY = p.y();
const int topArrowY = getY();
@@ -222,4 +220,6 @@ bool MessageWidget::onWidget(const QPoin
if (pY < topArrowY - tolerance || pY > bottomArrowY + tolerance)
return false;
+ if (getHeight() <= 2 * tolerance)
+ return true;
if (pY > topArrowY + tolerance && pY < bottomArrowY - tolerance)
return false;
More information about the umbrello-devel
mailing list