Bug 4006

Summary: selection expands in unexpected ways
Product: poppler Reporter: Christian Persch (GNOME) <chpe>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: 84yelo3, belegdol, Brian.Ewins, bugzilla, frederic.parrenin, freedesktop-bugs, nshmyrev, pebolle, pvillavi, tgpraveen89, thierry.vignaud
Version: unspecifiedKeywords: patch
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: a pdf file test case for this bug

Description Christian Persch (GNOME) 2005-08-07 06:35:56 UTC
Steps to reproduce:
0) Load this document: http://www.zweitausendeins.de/Mh/MH196xxl.pdf
1) On the first page, click-and-hold in the left column, drag down to select
parts of the paragraph

Expected results:
Selection follows paragraph layout.

Actual results:
At first it works as expected, then suddently the selection expands in
unexpected ways; see screenshot. Also note that the selection is drawn
differently while selecting than after a focus out/in cycle (screenshot shows
after; couldn't get one of 'before' since gnome-screenshot causes focus out.).

Screenshot @ http://www.gnome.org/~chpe/evsel1.png

Cairo + poppler + evince from today (2005-08-06), poppler 0_4_X branch.
Comment 1 Nickolay V. Shmyrev 2006-01-05 09:00:57 UTC
Agree, we have a lot of problems with selection in multicolumn documents and
even crashes.

http://bugzilla.gnome.org/show_bug.cgi?id=325457

http://bugzilla.gnome.org/show_bug.cgi?id=325189

And I can even reproduce "unexpected async reply" X crash with the document above.
Comment 2 Nickolay V. Shmyrev 2008-11-14 13:05:56 UTC
*** Bug 18531 has been marked as a duplicate of this bug. ***
Comment 3 Brian Ewins 2009-04-11 17:31:29 UTC
I believe this bug and bug 3188 have a common cause. I've posted a patch there which seems to fix the problem, but needs better testing. Hopefully some of the cc list here are interested?
Comment 4 Sergey 2010-05-10 03:03:56 UTC
I also have this problem using all libpoppler-based pdf-viewers. But it's not only with muti-colun text, but also with vertical-oriented text and upper or lower indexes. When i try to select a word on a line, which contain these symbols, they are become selected to. It often happens whith indexes in other columns.
Comment 5 Albert Astals Cid 2010-05-10 07:53:45 UTC
Sergey, in the future please do not play with severity, priority nor change the status of the bug to assigned.
Comment 6 Frederic Parrenin 2015-06-24 00:16:21 UTC
I confirm that selection still behaves strangely on some pdf file, especially with multiple columns.
I use evince 3.14.1 and poppler 0.26.5 on debian jessie.
I attach again one file attached to gnome bug #325189 because it is a good test case.
Comment 7 Frederic Parrenin 2015-06-24 00:17:09 UTC
Created attachment 116679 [details]
a pdf file test case for this bug
Comment 8 GitLab Migration User 2018-08-20 22:00:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/158.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.