filter/source/pdf/impdialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f73fe2523981a72d7a68eef9823a68b57c63d88a Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Mar 13 17:53:18 2023 +0100 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Tue Mar 14 15:12:56 2023 +0000 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.st...@allotropia.de> Reviewed-by: Michael Stahl <michael.st...@allotropia.de> (cherry picked from commit 8465ce89f16a97f3227fae2e8d4042c2ea885ed8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148855 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index fd68322f1a23..62e633a4deea 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -869,7 +869,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()) { std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(m_xContainer.get(), VclMessageType::Warning, VclButtonsType::Ok,