[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 10 09:04:38 PDT 2012
vcl/source/window/printdlg.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 77913325c27f5e3b8b6a3db8cfd52426815549d5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 10 17:04:13 2012 +0100
hide custom tab page if unused, e.g. macro printing
Change-Id: Ie3cea0d1d0b7140d1456478a92ac0e72bf423ed3
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 245e9f9..d097d39 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1155,6 +1155,9 @@ void PrintDialog::setupOptionalUI()
maJobPage.mpCopySpacer->Show( sal_False );
maJobPage.mpReverseOrderBox->Show( sal_False );
}
+
+ if (!mpCustomOptionsUIBuilder)
+ mpTabCtrl->RemovePage(mpTabCtrl->GetPageId(1));
}
void PrintDialog::DataChanged( const DataChangedEvent& i_rDCEvt )
More information about the Libreoffice-commits
mailing list