Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Editor] A pasted FreeText editor was missing when printing/saving #15274

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

calixteman
Copy link
Contributor

When a FreeText editor is pasted then it hasn't an editorDiv yet when added
to the layer, hence it's empty.
So this patch just move the call to addToAnnotationStorage to ensure we've
what we need.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with the comment addressed; thank you!

Comment on lines 38 to 39
window.PDFViewerApplication.pdfDocument.annotationStorage._storage
.size
Copy link
Collaborator

@Snuffleupagus Snuffleupagus Aug 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already an official getter for this, so please don't access a "private" property like this (since that'll break if we convert AnnotationStorage to actual private properties).

Suggested change
window.PDFViewerApplication.pdfDocument.annotationStorage._storage
.size
window.PDFViewerApplication.pdfDocument.annotationStorage.size

When a FreeText editor is pasted then it hasn't an editorDiv yet when added
to the layer, hence it's empty.
So this patch just move the call to addToAnnotationStorage to ensure we've
what we need.
@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2022

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/1188056854f00ae/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2022

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/e649cef9a596faa/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/1188056854f00ae/output.txt

Total script time: 4.99 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/e649cef9a596faa/output.txt

Total script time: 7.76 mins

  • Integration Tests: FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants