Fix http://bugzilla.lyx.org/show_bug.cgi?id=5097 with a hammer. The correct fix would be to call setBuffer() inside pasteSelectionHelper() only for those inserted paragraphs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25977 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-29 13:15:28 +00:00
parent aaa4169ece
commit ff80da000e

View File

@ -491,6 +491,7 @@ void updateLabels(Buffer const & buf, bool childonly)
// start over the counters // start over the counters
textclass.counters().reset(); textclass.counters().reset();
buf.clearReferenceCache(); buf.clearReferenceCache();
buf.inset().setBuffer(const_cast<Buffer &>(buf));
buf.updateMacros(); buf.updateMacros();
} }