[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Fri Nov 16 17:01:22 UTC 2012
SVN commit 1325272 by habacker:
Bug fix - use scene size for wrapping text labels exceeding the scene bounding rect.
BUG: 310125
M +2 -2 umlscene.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umlscene.cpp #1325271:1325272
@@ -1924,8 +1924,8 @@
}
int wX = pWidget->x();
int wY = pWidget->y();
- bool xIsOutOfRange = (wX <= 0 || wX >= FloatingTextWidget::restrictPositionMax);
- bool yIsOutOfRange = (wY <= 0 || wY >= FloatingTextWidget::restrictPositionMax);
+ bool xIsOutOfRange = (wX < sceneRect().left() || wX > sceneRect().right());
+ bool yIsOutOfRange = (wY < sceneRect().top() || wY > sceneRect().bottom());
if (xIsOutOfRange || yIsOutOfRange) {
QString name = pWidget->name();
if (name.isEmpty()) {
More information about the umbrello-devel
mailing list