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

"Oliver Kellogg" <[email protected]>
Newsgroups gmane.linux.umbrello.devel
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=449622

--- Comment #4 from Oliver Kellogg <[email protected]> ---
(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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.