]> git.lyx.org Git - features.git/commitdiff
Fix Horizontal Space dialog when issued from within math (bug 7746).
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 6 Sep 2011 06:42:18 +0000 (06:42 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 6 Sep 2011 06:42:18 +0000 (06:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39615 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ui/stdmenus.inc
src/insets/InsetCommand.cpp
src/mathed/InsetMathNest.cpp
status.20x

index 1b4a0946a143645b512976498cf096e16746e9c9..e3d2dc0e58facb1e002a8e994d24d9aad06ef203 100644 (file)
@@ -393,7 +393,7 @@ Menuset
                Item "Protected Space|P" "space-insert protected"
                Item "Interword Space|w" "space-insert normal"
                Item "Thin Space|T" "space-insert thin"
-               Item "Horizontal Space...|o" "dialog-show-new-inset space"
+               Item "Horizontal Space...|o" "command-alternatives dialog-show-new-inset space;dialog-show-new-inset mathspace"
                Item "Horizontal Line...|L" "dialog-show-new-inset line"
                Item "Vertical Space...|V" "dialog-show-new-inset vspace"
                Submenu "Phantom|m" "insert_phantom"
index fd86d03989a9047c038479fb177df6469c2fa295..92eb1a84fce8c81733457502364a57468d0a11ff 100644 (file)
@@ -332,6 +332,11 @@ bool decodeInsetParam(string const & name, string & data,
                data = InsetGraphics::params2string(p, buffer);
                break;
        }
+       case MATH_SPACE_CODE: {
+           InsetSpaceParams p(true);
+               data = InsetSpace::params2string(p);
+               break;
+       }
        case NOTE_CODE: {
                InsetNoteParams p;
                data = InsetNote::params2string(p);
index 9dd01cca0c66562c8516596f58f5d29858ab05a2..0ec27507a4fc06beac765144e5148a6772f02c69 100644 (file)
@@ -1390,6 +1390,14 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
                break;
        }
 
+       case LFUN_DIALOG_SHOW_NEW_INSET: {
+               docstring const & name = cmd.argument();
+               if (name == "space")
+                       flag.setEnabled(false);
+               break;
+       }
+
+
        case LFUN_MATH_DELIM:
        case LFUN_MATH_BIGDELIM:
                // Don't do this with multi-cell selections
index 977265583bbdd6f07f088f8bfee3e659a371e887..9b94f527e1a4cb96fc10928713e0e00c4d584339 100644 (file)
@@ -72,6 +72,8 @@ What's new
 
 - Repair broken outliner display for broken references (bug 7708).
 
+- Fix Horizontal Space dialog when issued from within math (bug 7746).
+
 - Mark buffer dirty when a label is changed, so the file can be saved and
   the change can be reverted (bug 7655).