Op 28-4-2013 18:13, Richard Heck schreef:
On 04/28/2013 10:25 AM, Vincent van Ravesteijn wrote:
Commit db358a (Richard Heck; Fix bug found by Scott concerning copying XHTML to clipboard) introduces a bug that crashes LyX when something is cut the second time.

Since commit 928dc0332 (Georg Baum; Fic crash for repeated pasting from complex docs) LyX crashes immediately on every cut.

I can't seem to get this to happen on Linux.

It looks as if maybe the XHTML copying stuff is more complicated than it seemed it would be. Perhaps it should be reverted for the moment, until we figure out what is happening.

Do you have a backtrace?

Richard


No, I can't seem to get a useful backtrace.

What I did found out is that:

1) It seems strange that Georg renamed buffer to staticbuffer, but then removed the static keyword.

2) Using MarkAsExporting is not appropriate if we delete the buffer anyway. And more importantly, buffer is deleted *before* MarkAsExporting. The latter causes the crash as it accesses the deleted buffer.

I will fix this soon.

Vincent

Reply via email to