To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=39746


User dvo changed the following:

                  What    |Old value                 |New value
================================================================================
                    Status|NEW                       |STARTED
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Tue Jan 18 08:13:40 -0800 
2005 -------
dvo: I can reproduce the problem now. Thanks everyone for being persistent. :-)


Investigation (with much help from mav) yields:

The problem is caused by one of the OLE objects: During saving, the size
(VisArea) of each object is requested
(sw/source/filter/xml/xmltexte.cxx#lcl_addOutplaceProperties, line 363). In
order to determine the size, the object must be running (since otherwise you
can't query it). During save, the object probably doesn't do that, and so the
call throws an InvalidStateException. This isn't caught, propagated to the save
handler, which terminates the save process.

An easy work-around is to add:
          #include <svtools/embedhlp.hxx>
          svt::EmbeddedObjectRef::TryRunningState( xObj );
just before querying the size. This solves the problem.

I'm not yet sure about the performance implications. We might just as well not
save the size of the object, since that is redundant information anyway. I will
ask mib.

dvo->testing: The problem is shadowed by several other bugs in the OLE
implementation. You will only be able to properly verify this after mav15 has
been integrated.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to