]> git.lyx.org Git - features.git/commit
Fix a crash when copying flex insets to another document.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 24 Aug 2009 23:02:50 +0000 (23:02 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 24 Aug 2009 23:02:50 +0000 (23:02 +0000)
commita6ff55e5394d2b43a7927f83d8d2f4506fc8e01d
treea32d0a544d6dd386bc998aba25efb38956c3157a
parenteef60e5197768636e2d1e4fb5efc10989edfeb1b
Fix a crash when copying flex insets to another document.

I know that Inset has a buffer, but we should be careful when handling Insets in CutAndPaste, these don't always have a buffer. Besides, we are in the function switchBetweenClasses(oldone, newone). Then it's pretty strange to ask the flex inset whether it is defined in its buffer->textclass, while we have an explicit new textclass defined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31223 a592a061-630c-0410-9148-cb99ea01b6c8
src/CutAndPaste.cpp