<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - EDITING: Chart size not retained when chart has empty data set"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=81134#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - EDITING: Chart size not retained when chart has empty data set"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=81134">bug 81134</a>
              from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
        <pre>Turns out the empty chart is still supposed to have the axes and markers, too.

The original regression is likely from this commit:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70">https://cgit.freedesktop.org/libreoffice/core/commit/?id=44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70</a>
author          Michael Meeks <<a href="mailto:michael.meeks@suse.com">michael.meeks@suse.com</a>>  2012-10-09 12:22:23
+0100
committer       Michael Meeks <<a href="mailto:michael.meeks@suse.com">michael.meeks@suse.com</a>>  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"
<a href="http://svn.apache.org/viewvc?view=revision&revision=1226879">http://svn.apache.org/viewvc?view=revision&revision=1226879</a>

Proposed patch: <a href="https://gerrit.libreoffice.org/71361/">https://gerrit.libreoffice.org/71361/</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>