<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failed when adding/removing/adding text box to a shape"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108867#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failed when adding/removing/adding text box to a shape"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108867">bug 108867</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>Just wonder if this line
m_rDoc.DelFrameFormat( pFormat );

(see
<a href="http://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentLayoutManager.cxx#316">http://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentLayoutManager.cxx#316</a>)

shouldn't be put outside the else block and so executed all the time.

Gabor: I'm not at home to test this, perhaps you could give it a try on local?

First, you might want to add some  temporary trace on
<a href="http://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentLayoutManager.cxx#243">http://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentLayoutManager.cxx#243</a>
to confirm we go in "if" block.</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>