* src/mathed/mathnestinset.C: disallow insertion of specialchars (bug 3590).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18397 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-05-18 06:02:01 +00:00
parent cd4de3a641
commit 1cbb6defc3
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-18 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* math_nestinset.C (getStatus): disallow insertion of special char
inset (bug 3590).
2007-04-10 Enrico Forestieri <forenr@tlc.unipr.it> 2007-04-10 Enrico Forestieri <forenr@tlc.unipr.it>
* math_biginset.C (draw): don't remove backslash delimiter. * math_biginset.C (draw): don't remove backslash delimiter.

View File

@ -1012,6 +1012,15 @@ bool MathNestInset::getStatus(LCursor & cur, FuncRequest const & cmd,
flag.enabled(true); flag.enabled(true);
break; break;
case LFUN_HYPHENATION:
case LFUN_LIGATURE_BREAK:
case LFUN_MENU_SEPARATOR:
case LFUN_LDOTS:
case LFUN_END_OF_SENTENCE:
// FIXME: These would probably make sense in math-text mode
flag.enabled(false);
break;
case LFUN_FRAK: case LFUN_FRAK:
flag.enabled(currentMode() != TEXT_MODE); flag.enabled(currentMode() != TEXT_MODE);
break; break;

View File

@ -45,7 +45,12 @@ What's new
* USER INTERFACE: * USER INTERFACE:
- fix bug where moving the last section up in the toc dialog eats the - fix bug where moving the last section up in the toc dialog eats the
last paragraph (bug 3303) last paragraph (bug 3303).
- fix crash when using "all-insets-toggle" lfun on a file with
math insets (bug 3358).
- fix crash when undoing ctrl-<minus> in mathed (bug 3590).
- Handle undo correctly when inserting a plain text file (bug 3204). - Handle undo correctly when inserting a plain text file (bug 3204).