[Libreoffice-bugs] [Bug 81134] EDITING: Chart size not retained when chart has empty data set
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 26 15:44:40 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=81134
--- Comment #12 from Aron Budea <baron at caesar.elte.hu> ---
Turns out the empty chart is still supposed to have the axes and markers, too.
The original regression is likely from this commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70
author Michael Meeks <michael.meeks at suse.com> 2012-10-09 12:22:23
+0100
committer Michael Meeks <michael.meeks at suse.com> 2012-11-06 11:58:16
+0000
commit 44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70 (patch)
tree cfca2fb5cd4676d7d55648fe11105753c2178d5d
parent eff92f2501cf070cd912508b2ccc3c0108d0327c (diff)
"re-base on ALv2 code. Includes (at least) relevant parts of:"
In particular:
"fix for #118525#: Using primitives for chart sub-geometry visualisation"
http://svn.apache.org/viewvc?view=revision&revision=1226879
Proposed patch: https://gerrit.libreoffice.org/71361/
The problem is that sizes are converted to tools::Rectangle, and 0 size becomes
a special RECT_EMPTY value (-32767). This -32767 value isn't converted back,
and the chart area instead of spanning from [0, 0] to [16000, 9000] becomes
spanning from [-32767, -32767] to [16000, 9000].
A straightforward place to fix it would be in SvxShape::getSize(), but that
isn't enough in itself, the area size still remains incorrect.
Instead, the above patch is a small workaround to make empty labels have 1x1
size.
--
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/20190426/42fc5f2c/attachment.html>
More information about the Libreoffice-bugs
mailing list