diff options
Diffstat (limited to 'sw/source/ui/vba/vbaapplication.cxx')
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index 98236bacec81..767709ad40c4 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -554,8 +554,8 @@ SwWordBasic::FileClose( const css::uno::Any& Save ) { uno::Reference< frame::XModel > xModel( mpApp->getCurrentDocument(), uno::UNO_SET_THROW ); - bool bSave = false; - if (Save.hasValue() && (Save >>= bSave) && bSave) + sal_Int16 nSave = false; + if (Save.hasValue() && (Save >>= nSave) && (nSave == 0 || nSave == 1)) FileSave(); // FIXME: Here I would much prefer to call VbaDocumentBase::Close() but not sure how to get at |