<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:Armin.Le.Grand@me.com" title="Armin Le Grand (CIB) <Armin.Le.Grand@me.com>"> <span class="fn">Armin Le Grand (CIB)</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - FILESAVE - Time to save a 500Kb xlsx file has grown and causes a dump (see comment 7)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118662">bug 118662</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>ASSIGNED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>libreoffice-bugs@lists.freedesktop.org
           </td>
           <td>Armin.Le.Grand@me.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - FILESAVE - Time to save a 500Kb xlsx file has grown and causes a dump (see comment 7)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118662#c23">Comment # 23</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - FILESAVE - Time to save a 500Kb xlsx file has grown and causes a dump (see comment 7)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118662">bug 118662</a>
              from <span class="vcard"><a class="email" href="mailto:Armin.Le.Grand@me.com" title="Armin Le Grand (CIB) <Armin.Le.Grand@me.com>"> <span class="fn">Armin Le Grand (CIB)</span></a>
</span></b>
        <pre>I had added a huge comment in XclObjComment already when I removed the cloning
of the SdrCaptionObject, see there (will delete this in the fix). It defines
why this cannot be reverted - it leads to errors itself.
Another reason to not revert this is that SdrObjects should be inserted to a
SdrPage/SdrGroup, else functionality is not guaranteed.
To fix this:
- Add an exclusive boolean flag to SdrCaptionObj, only accessible from
XclObjComment, that will be used to suppress graphic creation in
SvxShape::GetBitmap
- SvxShape::GetBitmap is a biiig time killer as we saw, mainly because always a
full E3dView is constructed and used - ARGH! There are more elegant methods to
create graphics nowadays. Will refresh that code. Metafile target can use
SingleObjectPainter, Bitamp target can use convertPrimitive2DSequenceToBitmapEx
directly.
- SdrObject::bInserted/IsInserted()/SetInserted can be simplified. No need for
a local bool, change SetInserted to a state change (InsertedStateChange()),
IsInserted() will be directly depend on being a member in a SdrObjList.

With this in place we may just let the SdrCaptionObj's create the graphics, it
will be faster. But better not, this may increase file size and these are
really not needed (at least nut until now). As I have seen most of these are
PostIt objects anyways.</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>