[Uml-devel] branches/work/soc-umbrello/umbrello

Gopala Krishna A krishna.ggk at gmail.com
Tue Sep 2 18:38:50 UTC 2008


SVN commit 856382 by gopala:

ObjectNodeWidget: Stripped margin handling code.



 M  +2 -3      objectnodewidget.cpp  


--- branches/work/soc-umbrello/umbrello/objectnodewidget.cpp #856381:856382
@@ -293,11 +293,10 @@
 {
 	if(change == SizeHasChanged) {
 		TextItemGroup *grp = textItemGroupAt(GroupIndex);
-		const qreal m = margin();
-		grp->setGroupGeometry(rect().adjusted(+m, +m, -m, -m));
+		grp->setGroupGeometry(rect());
 
 		// Calculate only if text items are properly intialized (which
-		// is not case during creation)
+		// is not during construction of this Widget)
 		if (grp->textItemCount() > 0) {
 			if (m_objectNodeType == ObjectNodeWidget::Flow) {
 				const TextItem *item = grp->textItemAt(0);




More information about the umbrello-devel mailing list