summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-02-13 14:41:46 +0200
committerTor Lillqvist <tml@collabora.com>2019-02-15 11:32:34 +0200
commitfb797eb41bf9b26261c4d9fe7a38ba635b80a20c (patch)
tree0fd2795533d93a86a11f609dc34a0edbecbd6ef5 /sw/source
parent5b81a29202c29ba14b6c707215a8d8cc920dae35 (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')
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 7341bd487fbd..58234632aa3f 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -556,8 +556,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