<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Pasting tables cells in strange order"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=3188#c70">Comment # 70</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Pasting tables cells in strange order"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=3188">bug 3188</a>
              from <span class="vcard"><a class="email" href="mailto:carlosgc@gnome.org" title="Carlos Garcia Campos <carlosgc@gnome.org>"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>While working on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Differing number of items returned from get_text{,layout} for glyphs over page edge"
   href="show_bug.cgi?id=71160">bug #71160</a> I've found another regression introduced by this
fix. In some cases, additional lines are added to the selection. For example,
open the hig document and go to the first page. Start selecting the second
line, but dragging from the margin, and you will see that the first line is
selected too. This is because the second line is more indented than the first
one. This fix changed the way blocks and lines are included in the selection by
using the manhattan distance, and in this case, the distance of the first line
is less than the second line, but the first line doesn't even intersect with
the selection rectangle. If you start the selection closer to the beginning of
the second line, then the first line is not included because distance to the
second line is less in such case. 

You can play with it now using the text demo of poppler-glib-demo. I've added
an area selector to get the text of a given area. Try using X1=0, Y1=122, which
should discard the first line, but it doesn't. However using X1=257, Y1=122
discards the first line entirely. 

So, I think that we need to somehow discard blocks and lines that don't
intersect with the selection rectangle even if the manhattan distance is less
than any other block/line.</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>