incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 118986] [RTF export] crashes when copy an empty line from Writer below a tif picture then paste into spreadsheet
Date Mon, 05 Mar 2012 11:59:53 GMT

--- Comment #4 from vmiklos <> 2012-03-05 11:59:53 UTC ---
[ Please don't take this as an LO-rant, I'm commenting this here as Oliver
asked for it. ]

On Fri, Mar 02, 2012 at 10:05:07AM +0100, Oliver-Rainer Wittmann
<> wrote:
> Is it possible to postpone the creation of the image data to the       
> point when they are needed instead of keeping them in memory?

That's exacly what I implemented. The idea is:

- create a wrapper around OStringBuffer, that can remember the arguments
  to a RtfAttributeOutput::FlyFrameGraphic() call
- instead of calling that method, just append the arguments to this
- call FlyFrameGraphic() when we can write to the stream directly

FYI, here are the patches:

- refactoring for RtfStringBuffer:

- the real fix:

valgrind's massif says the peak memory usage is now 1.048GB -> 330.1MB,
which should be on par with the old export.

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

View raw message