From: Angus Leeming Date: Wed, 7 Apr 2004 09:25:31 +0000 (+0000) Subject: Prevent crash when clicking on either the external or the include insets. X-Git-Tag: 1.6.10~15346 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=21ea61eb81c8447eeebc45234ac9caf3a3503de9;p=features.git Prevent crash when clicking on either the external or the include insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8618 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6e4d931deb..c7486f4c38 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,10 @@ +2004-04-07 Angus Leeming + + * insetexternal.C (priv_dispatch): + * insetinclude.C (priv_dispatch): prevent crash by invoking + InsetOld::priv_dispatch at the end of the switch, rather than + InsetOld::dispatch... + 2004-04-07 Martin Vermeer * insetcollapsable.C: diff --git a/src/insets/insetexternal.C b/src/insets/insetexternal.C index 870dcf6bee..d4e1796402 100644 --- a/src/insets/insetexternal.C +++ b/src/insets/insetexternal.C @@ -472,7 +472,7 @@ void InsetExternal::priv_dispatch(LCursor & cur, FuncRequest & cmd) break; default: - InsetOld::dispatch(cur, cmd); + InsetOld::priv_dispatch(cur, cmd); } } diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index 09745bdfdb..4d1381a605 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -145,7 +145,7 @@ void InsetInclude::priv_dispatch(LCursor & cur, FuncRequest & cmd) break; default: - InsetOld::dispatch(cur, cmd); + InsetOld::priv_dispatch(cur, cmd); break; } }