mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix InsetQuotes creation. Not very clean but it does the job. Andre, I think we should require the Buffer at construction for all insets that needs it. A base InsetBuffer class comes to mind.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23324 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5854c47a31
commit
f6e471fc8d
@ -1114,14 +1114,15 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
else
|
else
|
||||||
c = par.getChar(pos - 1);
|
c = par.getChar(pos - 1);
|
||||||
string arg = to_utf8(cmd.argument());
|
string arg = to_utf8(cmd.argument());
|
||||||
|
InsetQuotes * iq;
|
||||||
if (arg == "single")
|
if (arg == "single")
|
||||||
cur.insert(new InsetQuotes(c,
|
iq = new InsetQuotes(c, bufparams.quotes_language,
|
||||||
bufparams.quotes_language,
|
InsetQuotes::SingleQ);
|
||||||
InsetQuotes::SingleQ));
|
|
||||||
else
|
else
|
||||||
cur.insert(new InsetQuotes(c,
|
iq = new InsetQuotes(c, bufparams.quotes_language,
|
||||||
bufparams.quotes_language,
|
InsetQuotes::DoubleQ);
|
||||||
InsetQuotes::DoubleQ));
|
iq->setBuffer(bv->buffer());
|
||||||
|
cur.insert(iq);
|
||||||
cur.posForward();
|
cur.posForward();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user