summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-22 13:59:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-05-22 13:59:30 +0100
commit562b7b06b81c436b1e26f71dbd639b4e456999a6 (patch)
treea122ecce153d0072d3130a3591dc55b9031fb770 /toolkit
parent124c937f3bd6a7538dc6664ab9556fcfb3f27088 (diff)
The corresponding VCL Window is not necessarily a Button
Change-Id: I1034ca3cf490e471650617e95fb93bc64eb5fd80
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 2476e1f1151c..64afdffef4e9 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -236,8 +236,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
{
SolarMutexGuard aGuard;
- VclPtr< Button > pButton = GetAs< Button >();
- if ( !pButton )
+ if ( !GetWindow() )
return;
sal_uInt16 nPropType = GetPropertyId( PropertyName );