mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 17:09:56 +00:00
Fix bug 5782 in branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28824 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42de81d76f
commit
36e72cd094
@ -1166,7 +1166,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
pos_type pos = cur.pos();
|
pos_type pos = cur.pos();
|
||||||
BufferParams const & bufparams = bv->buffer().params();
|
BufferParams const & bufparams = bv->buffer().params();
|
||||||
Layout const & style = par.layout();
|
Layout const & style = par.layout();
|
||||||
if (!style.pass_thru
|
InsetLayout const & ilayout = cur.inset().getLayout(bufparams);
|
||||||
|
if (!style.pass_thru && !ilayout.isPassThru()
|
||||||
&& par.getFontSettings(bufparams, pos).language()->lang() != "hebrew") {
|
&& par.getFontSettings(bufparams, pos).language()->lang() != "hebrew") {
|
||||||
// this avoids a double undo
|
// this avoids a double undo
|
||||||
// FIXME: should not be needed, ideally
|
// FIXME: should not be needed, ideally
|
||||||
|
@ -109,12 +109,6 @@ void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
Layout const layout = bp.documentClass().plainLayout();
|
Layout const layout = bp.documentClass().plainLayout();
|
||||||
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
|
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
|
||||||
switch (cmd.action) {
|
switch (cmd.action) {
|
||||||
case LFUN_QUOTE_INSERT: {
|
|
||||||
// We need to bypass the fancy quotes in Text
|
|
||||||
FuncRequest f(LFUN_SELF_INSERT, "\"");
|
|
||||||
dispatch(cur, f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case LFUN_INSET_MODIFY: {
|
case LFUN_INSET_MODIFY: {
|
||||||
setStatus(cur, string2params(to_utf8(cmd.argument())));
|
setStatus(cur, string2params(to_utf8(cmd.argument())));
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user