summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-10 17:04:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:45 +0100
commit2d5d8ae320b04817d1debbebee045a2ddbb7b93b (patch)
treee14edc51ca46c0ae2befa1c3d86d4a045b5d96d7 /vcl
parent87b5cdd5ed13f5d05fe90b11b01e3832e5725b72 (diff)
hide custom tab page if unused, e.g. macro printing
Change-Id: Ie3cea0d1d0b7140d1456478a92ac0e72bf423ed3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/printdlg.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 245e9f992551..d097d39fc7b7 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 )