[Libreoffice-bugs] [Bug 129339] FILESAVE: Drawing is shrunk after RT
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Dec 12 15:07:38 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=129339
--- Comment #2 from Regina Henschel <rb.henschel at t-online.de> ---
Created attachment 156513
--> https://bugs.documentfoundation.org/attachment.cgi?id=156513&action=edit
shape anchored to cell but without resize
I think, there is a problem with the "end" values in the shape.
I have attached a file, which has the same settings. Only the shape is anchored
to cell, but not with "resize with cell". Therefore in file format the
attributes "table:end-cell-address", "table:end-x" and "table:end-y" are
missing.
The file has in addition a group of rectangles to indicate the cells and the
shape and the snap-rectangle of the shape. That group is anchored to page.
Open the file with my patch or a Daily without my patch or with LO 6.1, which
had been the start creator version of the document. Then set the shape to
anchor to cell _with_ resize and resave. That creates the above mentioned
attributes.
Now unpack the file and compare the original values with the new generated. In
the original document they are
address B3, x=36.57pt=12.90mm, y=3.66pt=1.2916mm
The new created values are
address C4, x=5.32mm, y=0.89mm.
The ODF 1.2 specification says (19.627, 19.632, 19.633):
<quote>
The table:end-cell-address attribute specifies specify end position of the
shape if it is included in a spreadsheet document.
The table:end-x attribute specifies the x-coordinate of the end position of a
shape relative to the top left edge of a cell. The size attributes of the shape
are ignored.
The table:end-y attribute specifies the y-coordinate of the end position of a
shape relative to the top left edge of a cell. The size attributes of the shape
are ignored.
</quote>
I think, that the error is not in my patch, but might become visible now. I
think the error is in the way these "end" values are calculated and used. The
old values would generate a nearly zero width of the shape, and the new created
values seem to be wrong too.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191212/a34c26f4/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list