filter/source/pdf/impdialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 63f6a1970868b3f8e5bc612f405d24ac9445ccea Author: Xisco Fauli <xiscofa...@libreoffice.org> Date: Wed Apr 11 16:42:05 2018 +0200 tdf#116874: Don't sign with watermark if the checkbox is disabled Change-Id: I354b0c3f0d6d29d91c1d7fa9678c4ce0bd7c8c1a Reviewed-on: https://gerrit.libreoffice.org/52732 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 8f10bc871420..90a79968ada6 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -727,7 +727,8 @@ void ImpPDFTabGeneralPage::GetFilterConfigItem( ImpPDFTabDialog* paParent ) paParent->mbExportFormFields = mpCbExportFormFields->IsChecked(); } - paParent->maWatermarkText = mpEdWatermark->GetText(); + if( mpCbWatermark->IsChecked() ) + paParent->maWatermarkText = mpEdWatermark->GetText(); /* * FIXME: the entries are only implicitly defined by the resource file. Should there _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits