From: Vincent van Ravesteijn Date: Wed, 29 Dec 2010 06:00:22 +0000 (+0000) Subject: Fix bug #7198: Assertion when calling inset-modify for a InsetSpace with a different... X-Git-Tag: 2.0.0~1236 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=693bdf8447e92dae54f1d7602c7d6a03fa3d2ffa;p=features.git Fix bug #7198: Assertion when calling inset-modify for a InsetSpace with a different argument than "space" git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37032 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp index 754a1efc4a..faebeec5d3 100644 --- a/src/insets/InsetSpace.cpp +++ b/src/insets/InsetSpace.cpp @@ -169,8 +169,11 @@ bool InsetSpace::getStatus(Cursor & cur, FuncRequest const & cmd, InsetSpaceParams params; string2params(to_utf8(cmd.argument()), params); status.setOnOff(params_.kind == params.kind); - } - // fall through + status.setEnabled(true); + } else + status.setEnabled(false); + return true; + case LFUN_INSET_DIALOG_UPDATE: status.setEnabled(true); return true;