]> git.lyx.org Git - features.git/commit
Fix bug 2744:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Oct 2006 14:21:11 +0000 (14:21 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Oct 2006 14:21:11 +0000 (14:21 +0000)
commit05be07de9e0d89bea3ad9c9be37d39b3557ebe33
treecb749862b574a58322c9d70ca23dc6fb937e6b92
parente7a64fb3e478968521ace4ea0b3bb8adf8c005da
Fix bug 2744:

* buffer.[Ch] (changeRefsIfUnique): extend to handle bibitems
        as well (the function takes a InsetCode argument now);
        clean up by using InsetIterator.

* InsetMathHull.C (doDispatch): changeRefsIfUnique needs a
        InsetCode argument now (bug 2744).

* insetlabel (doDispatch): changeRefsIfUnique needs a
        InsetCode argument now.

* insetbibitem (doDispatch): use changeRefsIfUnique
        (actual fix for bug 2744).

* insetcommand.[Ch]:
* insetcite.[Ch]: implement replaceContents, which is
        used by changeRefsIfUnique.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15289 a592a061-630c-0410-9148-cb99ea01b6c8
src/buffer.C
src/buffer.h
src/insets/insetbibitem.C
src/insets/insetcite.C
src/insets/insetcite.h
src/insets/insetcommand.C
src/insets/insetcommand.h
src/insets/insetlabel.C
src/mathed/InsetMathHull.C