[Uml-devel] KDE/kdesdk/umbrello/umbrello

Andi Fischer andi.fischer at hispeed.ch
Tue Jan 3 11:23:10 UTC 2012


SVN commit 1271154 by fischer:

Resize command of the widgets during a SVG export disabled. Thanks to Kip Warner for giving notice.

 M  +6 -2      umlviewimageexportermodel.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umlviewimageexportermodel.cpp #1271153:1271154
@@ -493,7 +493,10 @@
     // make sure the widget sizes will be according to the
     // actually used printer font, important for getDiagramRect()
     // and the actual painting
-    scene->forceUpdateWidgetFontMetrics(&painter);
+//    scene->forceUpdateWidgetFontMetrics(&painter);
+    //Note: The above was commented out because other exportViewTo...
+    //      do not have it and it forces a resize of the widgets,
+    //      which is not correctly implemented for now.
 
     painter.translate(-rect.x(),-rect.y());
     scene->getDiagram(rect, painter);
@@ -503,7 +506,8 @@
     exportSuccessful = true;
 
     // next painting will most probably be to a different device (i.e. the screen)
-    scene->forceUpdateWidgetFontMetrics(0);
+//    scene->forceUpdateWidgetFontMetrics(0);
+    //Note: See comment above.
 
     DEBUG(DBG_IEM) << "saving to file " << fileName << " successful=" << exportSuccessful;
     return exportSuccessful;




More information about the umbrello-devel mailing list