summaryrefslogtreecommitdiff
path: root/vcl/source/control/PriorityHBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/PriorityHBox.cxx')
-rw-r--r--vcl/source/control/PriorityHBox.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/PriorityHBox.cxx b/vcl/source/control/PriorityHBox.cxx
index cb3219bf5a5c..c3477d23f30d 100644
--- a/vcl/source/control/PriorityHBox.cxx
+++ b/vcl/source/control/PriorityHBox.cxx
@@ -128,10 +128,10 @@ void PriorityHBox::Resize()
if (pWindow && pWindow->GetParent() == this)
{
- nCurrentWidth -= pWindow->GetOutputWidthPixel() + get_spacing();
+ nCurrentWidth -= pWindow->GetOutDev()->GetOutputWidthPixel() + get_spacing();
pWindow->Show();
pPrioritable->HideContent();
- nCurrentWidth += pWindow->GetOutputWidthPixel() + get_spacing();
+ nCurrentWidth += pWindow->GetOutDev()->GetOutputWidthPixel() + get_spacing();
}
}
@@ -150,7 +150,7 @@ void PriorityHBox::Resize()
if (pWindow)
{
- nCurrentWidth -= pWindow->GetOutputWidthPixel() + get_spacing();
+ nCurrentWidth -= pWindow->GetOutDev()->GetOutputWidthPixel() + get_spacing();
pWindow->Show();
pPrioritable->ShowContent();
nCurrentWidth += getLayoutRequisition(*pWindow).Width() + get_spacing();