[Uml-devel] [Bug 90106] Export Diagram PNG has black edges on left and top

Modestas Vainius geromanas at mailas.com
Wed Oct 13 22:59:11 UTC 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From geromanas mailas com  2004-10-14 00:23 -------
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

More information about the umbrello-devel mailing list