Commit ea2a7b26 authored by Albert Astals Cid's avatar Albert Astals Cid

PDF: Finish support for Optional Content state change links

I implemented this 3 years ago, but for some reason forgot to commit this part ^_^

CCBUGS: 408849
parent f3f7ca79
......@@ -525,7 +525,12 @@ Okular::Action* createLinkFromPopplerLink(const Poppler::Link *popplerLink, bool
case Poppler::Link::OCGState:
#ifdef HAVE_POPPLER_0_50
link = new Okular::BackendOpaqueAction();
link->setNativeId( QVariant::fromValue( static_cast<const Poppler::LinkOCGState*>( popplerLink ) ) );
deletePopplerLink = false;
#ifdef HAVE_POPPLER_0_64
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment