From 693bdf8447e92dae54f1d7602c7d6a03fa3d2ffa Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 29 Dec 2010 06:00:22 +0000 Subject: [PATCH] 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 --- src/insets/InsetSpace.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;