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
This commit is contained in:
Angus Leeming 2004-04-07 09:25:31 +00:00
parent 6c9b23105c
commit 21ea61eb81
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-04-07 Angus Leeming <angus@localhost.localdomain>
* 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 <martin.vermeer@hut.fi>
* insetcollapsable.C:

View File

@ -472,7 +472,7 @@ void InsetExternal::priv_dispatch(LCursor & cur, FuncRequest & cmd)
break;
default:
InsetOld::dispatch(cur, cmd);
InsetOld::priv_dispatch(cur, cmd);
}
}

View File

@ -145,7 +145,7 @@ void InsetInclude::priv_dispatch(LCursor & cur, FuncRequest & cmd)
break;
default:
InsetOld::dispatch(cur, cmd);
InsetOld::priv_dispatch(cur, cmd);
break;
}
}