mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
8c8e438e4c
commit
4fac72de9f
@ -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>
|
||||
|
14
src/text3.C
14
src/text3.C
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user