[Poppler-bugs] [Bug 26532] Not showing text in Evince

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 16 15:17:30 PST 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26532





--- Comment #5 from Brad Hards <bradh at frogmouth.net>  2010-02-16 15:17:30 PST ---
(In reply to comment #0)
> Created an attachment (id=33238)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33238) [details]
> screenshot
> 
> The image attached shows the difference between the xpdf and poppler outputs.
> 

(In reply to comment #4)
> Brad, the following code fixes this problem and another pdf for me, do you
> remember if you had an exact reason for writing it the other way?
> 
> diff --git a/poppler/OptionalContent.cc b/poppler/OptionalContent.cc
> index f59b16a..5665f54 100644
> --- a/poppler/OptionalContent.cc
> +++ b/poppler/OptionalContent.cc
> @@ -199,7 +199,7 @@ bool OCGs::optContentIsVisible( Object *dictRef )
>        }
>      } else if (ocg.isRef()) {
>        OptionalContentGroup* oc = findOcgByRef( ocg.getRef() );
> -      if ( !oc || oc->getState() == OptionalContentGroup::Off ) {
> +      if ( oc && oc->getState() == OptionalContentGroup::Off ) {
>         result = false;
>        } else {
>         result = true ;
> 

No idea what I was thinking. The change looks good to me.

Brad


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list