diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-03-13 17:53:18 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-03-14 09:39:08 +0000 |
commit | 847f836c047152b6202b9ee28020df5e87eeba2f (patch) | |
tree | 93f00bbe925fd9b717260ee64a9c80e01dce20ed /filter | |
parent | baebe41647e4522a2d58f7a4eb392ceab66fc2c9 (diff) |
tdf#154171 filter: PDF export dialog: don't show spurious error if PDF/UA toggled
1. Security tab, set permission password
2. General tab, disable PDF/UA
3. General tab, enable PDF/UA
4. spurious error dialog mentioning PDF/A, which is unrelated to PDF/UA
(regression from commit 5a7cfe98e96489b7fa19d286ddd1e8c8e591d7dd)
Change-Id: I742da1cd459919faeae53fc21e5f97ee6a7c6ffe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148801
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 2516342cde70..c766c93d5938 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -883,7 +883,7 @@ IMPL_LINK_NOARG(ImpPDFTabGeneralPage, TogglePDFVersionOrUniversalAccessibilityHa mxCbTaggedPDF->set_active(true); // if a password was set, inform the user that this will not be used - if (pSecPage && pSecPage->hasPassword()) + if (bIsPDFA && pSecPage && pSecPage->hasPassword()) { mxPasswordUnusedWarnDialog = std::shared_ptr<weld::MessageDialog>(Application::CreateMessageDialog(m_xContainer.get(), |