https://issues.apache.org/ooo/show_bug.cgi?id=123812

hanya <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from hanya <[email protected]> ---
Created attachment 82403
  --> https://issues.apache.org/ooo/attachment.cgi?id=82403&action=edit
Patch to add FailOnWarning as valid parameter

If "Always save a version on closing" is checked on Versions dialog, 
SID_SAVEDOC request is made with SID_DOCINFO_COMMENTS and 
SID_FAIL_ON_WARNING in SfxObjectShell::PrepareClose method.
The SID_SAVEDOC request is processed in SfxObjectShell::ExecFile_Impl method
and 
GUIStoreModel method on SfxStoringHelper method is called.
SfxBaseModel::storeSelf method is called to store into the file but 
I get IllegalArgumentException and store method is called to store
alternatively. 
So, no original arguments for saveas command lost.
The exception is raised because FailOnWarning parameter is not accepted in
storeSelf method.

Storing a version from Versions dialog does not specify FailOnWarning
parameter, 
the same problem does not happen with it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to