[Uml-devel] [Bug 295600] Umbrello should be able to export diagrams to graphviz dot format

Oliver Kellogg okellogg at users.sourceforge.net
Sat Mar 10 18:28:16 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=295600

--- Comment #15 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
(In reply to comment #14)
> > [...]
> > In fact, as seen in the attached log of the console messages, many of the
> > computed coordinates are negative.
> Need to be inspected. As workaround set in the related config file
> 
> [X-UMBRELLO-Dot-Settings]
> origin=50,50
> to a higher value for example 
> origin=200,50

Did that - but umbrello did not pick up the changed value.
So I just modified the initial value of m_origin in the LayoutGenerator
constructor.
And now at least I can see all classes on the diagram.

> yes see origin(..)
> QPoint p(m_origin.x() + r.x() - r.width()/2,
>         m_boundingRect.height() - r.y() + r.height()/2 + m_origin.y());

I did a little debugging and I see some small values for r.x() but larger
values for r.width() - which explains why the x coordinate turns out negative
when m_origin is not large enough.
Example: m_origin.x() = 50, r.x() = 20 , r.width() = 200

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




More information about the umbrello-devel mailing list