summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt/vclxcontainer.cxx')
-rw-r--r--toolkit/source/awt/vclxcontainer.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx
index e070c3239ab7..082cdacaa786 100644
--- a/toolkit/source/awt/vclxcontainer.cxx
+++ b/toolkit/source/awt/vclxcontainer.cxx
@@ -254,15 +254,7 @@ void SAL_CALL VCLXContainer::setProperty(
TabPage* pScrollTabPage = dynamic_cast< TabPage* >( pWindow.get() );
if ( pWindow && (pScrollable || pScrollTabPage) )
{
- OutputDevice* pDev = VCLUnoHelper::GetOutputDevice( getGraphics() );
- if ( !pDev )
- pDev = pWindow->GetParent();
- // shouldn't happen but it appears pDev can be NULL
- // #FIXME ( find out how/why )
- if ( !pDev )
- break;
-
- aSize = pDev->LogicToPixel( aSize, aMode );
+ aSize = pWindow->LogicToPixel( aSize, aMode );
switch ( nPropType )
{
case BASEPROPERTY_SCROLLHEIGHT: