From 4804ed902a00cf72f86caa75cb6b6a04ffd72493 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 10 Apr 2015 14:31:15 +0100 Subject: Fixup toolkit's printer code. Change-Id: I1d9b0cee1c04e853d38135b84c5c8db24538176e --- toolkit/source/awt/vclxwindows.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'toolkit/source/awt/vclxwindows.cxx') diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index ca4400e14526..e2814d23af30 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -262,10 +262,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com: { sal_Int16 nAlignment = sal_Int16(); if ( Value >>= nAlignment ) - { - Button* pButton = static_cast< Button* >( GetWindow() ); - pButton->SetImageAlign( static_cast< ImageAlign >( nAlignment ) ); - } + GetAs< Button >()->SetImageAlign( static_cast< ImageAlign >( nAlignment ) ); } } break; @@ -279,8 +276,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com: { sal_Int16 nImagePosition = 2; OSL_VERIFY( Value >>= nImagePosition ); - Button* pButton = static_cast< Button* >( GetWindow() ); - pButton->SetImageAlign( ::toolkit::translateImagePosition( nImagePosition ) ); + GetAs