<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - copy/paste of text boxes results in separate shape and text frame"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135888#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - copy/paste of text boxes results in separate shape and text frame"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135888">bug 135888</a>
              from <span class="vcard"><a class="email" href="mailto:vmiklos@collabora.com" title="Miklos Vajna <vmiklos@collabora.com>"> <span class="fn">Miklos Vajna</span></a>
</span></b>
        <pre>The original doc model I added was that a draw format and a fly format is
linked together to form a textbox in case they both have  RES_CNTNT that point
to the same content. This has the nice property that those node indexes are
automatically updated in many cases, unlike raw pointers.

Jan-Marek noticed some perf problems with this, since in case you have lots of
textboxes, then looking up all these pairs is O(N^2) (where N is the number of
frame formats in the special frame format array). So he added those raw
pointers in the SwFrameFormat class, to have faster way/cache to jump to the
"other" frame format (if there is any). Is it possible that at some stage we
update RES_CNTNT but not these newer pointers?

The reset/restoreLinks() code is only relevant for linked text frames. I.e.
imagine some corner case that you have 2 rounded rectangles and the text
content flows from the 1st to the 2nd one. Then you need the 2 draw formats for
the rounded corners, but the 2 fly formats will be linked fly frames.

Hope this helps.</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>