]> git.lyx.org Git - features.git/commitdiff
Ressurect LFUN_MATH_SIZE, set toolbars accordingly.
authorPavel Sanda <sanda@lyx.org>
Sat, 14 Jun 2008 18:38:14 +0000 (18:38 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 14 Jun 2008 18:38:14 +0000 (18:38 +0000)
http://thread.gmane.org/gmane.editors.lyx.devel/108469

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25250 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ui/stdtoolbars.inc
src/mathed/InsetMathNest.cpp

index 2bf0ede5dbc80a7bbda115886c6747006aa1d48c..707aca92fa061ee98614ce52ce4503e4f82059f0 100644 (file)
@@ -285,10 +285,10 @@ ToolbarSet
        End
        
        Toolbar "style" "Styles"
-               Item "Display style     \\displaystyle" "math-insert \displaystyle"
-               Item "Normal text style \\textstyle" "math-insert \textstyle"
-               Item "Script (small) style      \\scriptstyle" "math-insert \scriptstyle"
-               Item "Scriptscript (smaller) style      \\scriptscriptstyle" "math-insert \scriptscriptstyle"
+               Item "Display style     \\displaystyle" "math-size \displaystyle"
+               Item "Normal text style \\textstyle" "math-size \textstyle"
+               Item "Script (small) style      \\scriptstyle" "math-size \scriptstyle"
+               Item "Scriptscript (smaller) style      \\scriptscriptstyle" "math-size \scriptscriptstyle"
        End
        
        Toolbar "frac-square" "Fractions"
index 57f2fb4101e137c36d15262bcf1e386351d19d04..883a7606de89b150000a5dcdfbf4f2ef181ca215 100644 (file)
@@ -960,12 +960,11 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                break;
        }
 
-       case LFUN_MATH_SIZE:
-#if 0
-               cur.recordUndoSelection();
-               cur.setSize(arg);
-#endif
+       case LFUN_MATH_SIZE: {
+               FuncRequest fr = FuncRequest(LFUN_MATH_INSERT, cmd.argument());
+               doDispatch(cur, fr);
                break;
+       }
 
        case LFUN_MATH_MATRIX: {
                cur.recordUndo();