summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/print/prtsetup.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx
index 35620aa0430b..b4fb58a749d3 100644
--- a/vcl/unx/generic/print/prtsetup.cxx
+++ b/vcl/unx/generic/print/prtsetup.cxx
@@ -83,6 +83,13 @@ RTSDialog::RTSDialog(const PrinterInfo& rJobData, vcl::Window* pParent)
get(m_pCancelButton, "cancel");
get(m_pTabControl, "notebook");
+ sal_uInt16 nPageCount = m_pTabControl->GetPageCount();
+ for (sal_uInt16 nPage = 0; nPage < nPageCount; ++nPage)
+ {
+ sal_uInt16 nPageId = m_pTabControl->GetPageId(nPage);
+ m_pTabControl->SetTabPage(nPageId, nullptr);
+ }
+
OUString aTitle(GetText());
SetText(aTitle.replaceAll("%s", m_aJobData.m_aPrinterName));