AnnotWidget: Avoid repeatedly deleting and creating xref entries for appearance streams

Previously updating the appearance stream always involved deleting the old
stream's xref entry and creating a new one.
Since xref entry deletion causes the generation number to be incremented, this
behavior caused the generation number to quickly rise during user input.

This patch stops it by reusing the same entry as the old appearance stream in
case of repeated modifications.
2 files changed