summaryrefslogtreecommitdiff
path: root/oox/source/ole/axcontrolhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/ole/axcontrolhelper.cxx')
-rw-r--r--oox/source/ole/axcontrolhelper.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/ole/axcontrolhelper.cxx b/oox/source/ole/axcontrolhelper.cxx
index cd8180728074..057adc6c20bc 100644
--- a/oox/source/ole/axcontrolhelper.cxx
+++ b/oox/source/ole/axcontrolhelper.cxx
@@ -93,8 +93,10 @@ AxControlHelper::~AxControlHelper()
Reference< XForm > AxControlHelper::getControlForm() const
{
if( !mbHasFormQuerried )
+ {
+ mbHasFormQuerried = true;
mxForm = createControlForm(); // virtual call
- mbHasFormQuerried = true;
+ }
return mxForm;
}