Summary: | Export Diagram PNG has black edges on left and top | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Bill Lewis <bill> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bill Lewis
2004-09-23 16:46:08 UTC
Consider this extract from umlview.cpp:873 (UMLView::getDiagramRect()): ------------------------------------ } // Margin: startx -= 24; starty -= 20; endx += 24; endy += 20; return QRect(startx, starty, endx - startx, endy - starty); } ------------------------------------------- in case of "startx" < 24 and/or "starty" < 20, the values of these variables will turn negative after decrement. I suppose, this should not happen. As this rect object is later used to define the area in a diagram to be converted into an image, unexpected results are produced. Furthermore, as UMLView::getDiagramRect() is extensively used in the code, this bug may be a cause of other problems. I'm using Umbrello 1.3.1 and KDE 3.3.0 CVS commit by jriddell: Remove margin which was causing problems BUG:90106 M +2 -0 umlview.cpp 1.183 --- kdesdk/umbrello/umbrello/umlview.cpp #1.182:1.183 @@ -885,4 +885,5 @@ QRect UMLView::getDiagramRect() { } +/* Margin causes problems of black border around the edge // Margin: startx -= 24; @@ -890,4 +891,5 @@ QRect UMLView::getDiagramRect() { endx += 24; endy += 20; +*/ return QRect(startx, starty, endx - startx, endy - starty); |