[umbrello] [Bug 449622] fit to screen after loading file

Oliver Kellogg bugzilla_noreply at kde.org
Thu Feb 10 15:21:50 GMT 2022


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

--- Comment #4 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
(In reply to Oliver Kellogg from comment #3)
> [...]
> However, there are also huge offsets on the x/y coordinates in the diagram 
> elements.
> First <classwidget> in <diagram>:
> <classwidget linecolor="#ff0000" [...] x="-95708.9" showattsigs="601"
> showstereotype="1" y="-36843.3" 
> 
> Looking at the x / y values of the further widgets, they all have a huge
> offset factor.
> 
> For the load code this would mean there would need to be an extra first pass
> which determines the minimum of all x and the minimum of all y values, and
> [...]

I looked into this and there is one line in the file that does not fit with
this approach.
It is line 1895,
<floatingtext linecolor="#ff0000" [...] x="-4.29496e+09" [...] y="-4.295e+09"
text="sprites" 

In order for the approach to work, this line needs to be removed manually.
Reason: The x and y values are completely bonkers. The rest of x / y values
have offsets of approx. -98000 and -38000, respectively.

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


More information about the umbrello-devel mailing list