diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-02-13 14:41:46 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-15 11:33:41 +0200 |
commit | 6ead817bb830b332e16e0c2ab8f39ac7ab440152 (patch) | |
tree | 7bc6572b4fb37d5ecd111e4e05122539d2a5f471 /sw/source/ui | |
parent | 86e5ec2e5f199185dd8e9a03e72d4a2f81d9eabc (diff) |
Interpret the parameter of WordBasic.FileClose() more correctly
In particular, the value 2 means "do not save".
Change-Id: I9788d201f8ecfcc016a12aa2088552ee994e1c17
Diffstat (limited to 'sw/source/ui')
-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 |