mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
remove duplicate check for current selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37428 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a5b01f8f96
commit
64c4ccbeed
@ -1890,10 +1890,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
Language const * lang = languages.getLanguage(to_utf8(cmd.argument()));
|
Language const * lang = languages.getLanguage(to_utf8(cmd.argument()));
|
||||||
if (!lang)
|
if (!lang)
|
||||||
break;
|
break;
|
||||||
if (!cur.selection()) {
|
selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
||||||
// apply to current word
|
|
||||||
selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
|
||||||
}
|
|
||||||
Font font(ignore_font, lang);
|
Font font(ignore_font, lang);
|
||||||
toggleAndShow(cur, this, font);
|
toggleAndShow(cur, this, font);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user