Kaydet (Commit) 6ead817b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Interpret the parameter of WordBasic.FileClose() more correctly

In particular, the value 2 means "do not save".

Change-Id: I9788d201f8ecfcc016a12aa2088552ee994e1c17
üst 86e5ec2e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment