On 04/20/2013 12:16 PM, Georg Baum wrote:
Scott Kostyshak wrote:
I'm getting a SIGSEGV now. I can reproduce on Ubuntu 12.04 with the
following: 1. Open the User's Guide, Additional Features, Embedded
Objects, or Math manual. 2. Select all
3. Copy
Thanks, I can reproduce it. The attached patch works around the problem. It
looks like the temp buffer misses the math macro definitions (a call to
updateMacros() which should set docit_ did not help). Does anybody know a
better solution?
My general thought after looking at this is that we need to do some work
on the paragraphs, after we paste them into the new buffer, and that the
work we need to do is very much like what happens when we do a real
paste. So perhaps the thing to do is try to use pasteParagraphList()
here, or something of the sort, since all that work does actually get
done there.
Of course, the problem here is that we need to pass a Cursor to
pasteParagraphList(), and we do not have a BufferView for the temp
Buffer. But it seems the right idea.
Richard