Re: Loses diagram when I zoom in



At 19.05.2014 12:29, Chris Green wrote:
[...]
How odd, it appears to be a quirk of this particular diagram on my
system only.  As I said other previously saved diagrams are fine still.

Yes, but some related information is still saved with the file. Found by just opening the file with an editor and searching for 'nan' (not a number) and 'inf' (infinite) shows:

    <dia:object type="Network - Cloud" version="1" id="O0">
      <dia:attribute name="obj_pos">
        <dia:point val="1,1"/>
      </dia:attribute>
      <dia:attribute name="obj_bb">
        <dia:rectangle val="-inf,-inf;inf,3.22101"/>
      </dia:attribute>

So the cloud object's bounding box gets calculated to really big numbers on your system. If I save you file on one of my systems the bounding box is caclculated corrected to:

    <dia:object type="Network - Cloud" version="1" id="O0">
      <dia:attribute name="obj_pos">
        <dia:point val="1,1"/>
      </dia:attribute>
      <dia:attribute name="obj_bb">
        <dia:rectangle val="0.9,0.9;3.1,3.32101"/>
      </dia:attribute>

The bounding box get's recalculated after loading the file so the propblem is not reproduceable, if the miscalculation does not happen at runtime.

The issue might be fixed en passant with
https://bugzilla.gnome.org/show_bug.cgi?id=710818

It is explained to some extend here:
https://git.gnome.org/browse/dia/commit/?h=dia-0-97&id=335ced1909180f0bc4fb064aaa676a86c740dce0
and depends on the C-runtime library used and maybe also the CPU used

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]