https://bugs.documentfoundation.org/show_bug.cgi?id=40244

Justin L <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FILESAVE to read-only       |FILESAVE to ODF formats:
                   |location gives wrong error  |read-only location gives
                   |message                     |wrong error message

--- Comment #22 from Justin L <[email protected]> ---
The code in question is in SfxObjectShell::SaveTo_Impl.
The formats diverge because ODF is bStorageBasedTarget and therefore it tries
to rMedium.GetOutputStorage().

The first thing that GetOutputStorage does is SfxMedium::CreateTempFileNoCopy()
which just sets ERRCODE_IO_CANTWRITE when the temporary filename fails.
It then tries to return GetStorage() which makes two calls to GetMedium_Impl()
which is the source of the first two error messages. The final error message is
the expected one when SaveTo_Impl fails.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to