summaryrefslogtreecommitdiff
path: root/vcl/source/window/builder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/builder.cxx')
-rw-r--r--vcl/source/window/builder.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 5d955f7e3c4a..58e229f51624 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1146,7 +1146,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
sal_uInt16 nNewPageId = nNewPageCount;
pTabControl->InsertPage(nNewPageId, OUString());
pTabControl->SetCurPageId(nNewPageId);
-
+ SAL_WARN_IF(bIsPlaceHolder, "vcl.layout", "we should have no placeholders for tabpages");
if (!bIsPlaceHolder)
{
VclPtrInstance<TabPage> pPage(pTabControl);
@@ -1159,13 +1159,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
m_aChildren.emplace_back(sTabPageId, pPage, false);
pPage->SetHelpId(m_sHelpRoot + sTabPageId);
- //And give the page one container as a child to make it a layout enabled
- //tab page
- VclPtrInstance<VclBin> pContainer(pPage);
- pContainer->Show();
- m_aChildren.emplace_back(OString(), pContainer, false);
- pContainer->SetHelpId(m_sHelpRoot + sTabPageId + OString("-bin"));
- pParent = pContainer;
+ pParent = pPage;
pTabControl->SetTabPage(nNewPageId, pPage);
}