]> git.lyx.org Git - features.git/commitdiff
Fix bug #7198: Assertion when calling inset-modify for a InsetSpace with a different...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 29 Dec 2010 06:00:22 +0000 (06:00 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 29 Dec 2010 06:00:22 +0000 (06:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37032 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetSpace.cpp

index 754a1efc4a6ac40a1b47fde0519db61e66481c1d..faebeec5d3a0f075318e3f7a41689abb6f30214c 100644 (file)
@@ -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;