]> git.lyx.org Git - features.git/commit
Fix crash reported by Tommaso:
authorRichard Heck <rgheck@lyx.org>
Mon, 4 Jun 2012 17:39:24 +0000 (13:39 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 4 Jun 2012 17:39:24 +0000 (13:39 -0400)
commit7ef8df460ae85bc19ce37124702599a469beb5eb
treeb30dc89ade4a06337e56f42d5cf3731607aaf327
parent1078dba130a66a61ea67a8b7c335f04edb38db0f
Fix crash reported by Tommaso:
  http://marc.info/?l=lyx-devel&m=133876924408431&w=2
The problem here is that the copy_params() routine in FindAndReplace.cpp
created a new DocumentClass, but it never updated its Buffer to reflect
that new DocumentClass. So its Paragraphs still contained points to the
Layouts in the old DocumentClass which, since ead697d4b6c7, gets garbage
collected once it is no longer needed. So the Layout doesn't exist, and
we crash.
src/BufferParams.h
src/BufferView.cpp
src/BufferView.h
src/frontends/qt4/FindAndReplace.cpp