From 63f6a1970868b3f8e5bc612f405d24ac9445ccea Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 11 Apr 2018 16:42:05 +0200 Subject: tdf#116874: Don't sign with watermark if the checkbox is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I354b0c3f0d6d29d91c1d7fa9678c4ce0bd7c8c1a Reviewed-on: https://gerrit.libreoffice.org/52732 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ --- filter/source/pdf/impdialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3