[Marble-commits] branches/KDE/4.3/kdeedu/marble/src/lib

Bastian Holst bastianholst at gmx.de
Sun Jul 19 22:34:46 CEST 2009


SVN commit 999458 by bholst:

Marble FloatItems havn't caused a paint event for their whole painting rect
which caused Marble to sometimes ignore painting the outer border of some
FloatItems. This is fixed now (in trunk the fix will come along with the
porting of FloatItems to ScreenGraphicsItems).


 M  +3 -1      AbstractFloatItem.cpp  


--- branches/KDE/4.3/kdeedu/marble/src/lib/AbstractFloatItem.cpp #999457:999458
@@ -522,7 +522,9 @@
                 }
 
                 setPosition(QPointF(newX,newY));
-                QRect newFloatItemRect = QRectF(positivePosition(QRect(0,0,widget->width(),widget->height())), size() ).toRect();
+                QRect newFloatItemRect = 
+QRectF(positivePosition(QRect(0,0,widget->width(),widget->height())), size() + QSize( 1, 1 ) 
+).toRect();
                 d->m_floatItemMoveStartPos = event->pos();
                 QRegion dirtyRegion(floatItemRect.toRect());
                 dirtyRegion = dirtyRegion.united(newFloatItemRect);


More information about the Marble-commits mailing list