summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-04-11 16:42:05 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2018-04-13 09:30:13 +0200
commit63f6a1970868b3f8e5bc612f405d24ac9445ccea (patch)
treeb173b4e972cbb4d890bac8f47157262a403c56a7
parent0fdcfedd898afcc03332a432ef21052eee6b3a3a (diff)
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 <ci@libreoffice.org> Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
-rw-r--r--filter/source/pdf/impdialog.cxx3
1 files changed, 2 insertions, 1 deletions
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