Commit 347b53f7 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

annots: do not set the default appearance state when invalidating appearances

We are setting the default appareance state to Off and then we are
updating AS dictionary to NULL in the XRef. The appearance state is only
required when there's more than once appearance stream, but when
invalidating the apperance we remove all streams.
parent b5e9941c
......@@ -1504,7 +1504,8 @@ void Annot::invalidateAppearance() {
delete appearStreams;
appearStreams = NULL;
setAppearanceState("Off"); // Default appearance state
appearance.free();
appearance.initNull();
Object obj1;
obj1.initNull();
......
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