From 2384c3641629df27760695f93b6d9cb32310298a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 12 Dec 2003 15:21:31 +0000 Subject: [PATCH] next try with Michael's patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8244 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetcollapsable.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 702c0e7651..5de552d990 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -354,11 +354,13 @@ InsetCollapsable::priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &) case LFUN_INSET_TOGGLE: if (inset.text_.toggleInset()) return DispatchResult(true, true); - if (status_ == Open) + if (status_ == Open) { setStatus(Inlined); return DispatchResult(true, true); - setStatus(Collapsed); - return DispatchResult(false, FINISHED_RIGHT); + } else { + setStatus(Collapsed); + return DispatchResult(false, FINISHED_RIGHT); + } default: return inset.dispatch(adjustCommand(cmd));