fix setOnOff handling in LyXText::getStatus

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9908 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-05-05 13:13:56 +00:00
parent 8c8e438e4c
commit 4fac72de9f
2 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,7 @@
2005-05-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C (getStatus): immediately return after setOnOff
* rowpainter.C: fix drawing of appendix start
2005-05-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>

View File

@ -1553,7 +1553,7 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
case LFUN_APPENDIX:
flag.setOnOff(cur.paragraph().params().startOfAppendix());
break;
return true;
#if 0
// the functions which insert insets
@ -1740,27 +1740,27 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
case LFUN_EMPH:
flag.setOnOff(font.emph() == LyXFont::ON);
break;
return true;
case LFUN_NOUN:
flag.setOnOff(font.noun() == LyXFont::ON);
break;
return true;
case LFUN_BOLD:
flag.setOnOff(font.series() == LyXFont::BOLD_SERIES);
break;
return true;
case LFUN_SANS:
flag.setOnOff(font.family() == LyXFont::SANS_FAMILY);
break;
return true;
case LFUN_ROMAN:
flag.setOnOff(font.family() == LyXFont::ROMAN_FAMILY);
break;
return true;
case LFUN_CODE:
flag.setOnOff(font.family() == LyXFont::TYPEWRITER_FAMILY);
break;
return true;
case LFUN_DELETE_WORD_FORWARD:
case LFUN_DELETE_WORD_BACKWARD: