summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index e58b643a076d..9a139117454c 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -373,9 +373,11 @@ ScVbaApplication::FileDialog( const uno::Any& DialogType )
sal_Int32 nType = 0;
DialogType >>= nType;
- m_nDialogType = nType;
if( !m_xFileDialog || nType != m_nDialogType )
+ {
+ m_nDialogType = nType;
m_xFileDialog = uno::Reference<excel::XFileDialog> ( new ScVbaFileDialog( this, mxContext, nType ));
+ }
return uno::Any( m_xFileDialog );
}