mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
fix bug 6698
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36519 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b8b971cdd5
commit
e57084c140
@ -145,11 +145,28 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
|
||||
case LFUN_ARGUMENT_INSERT:
|
||||
return new InsetArgument(buf);
|
||||
|
||||
case LFUN_FLOAT_INSERT:
|
||||
return new InsetFloat(buf, to_utf8(cmd.argument()));
|
||||
case LFUN_FLOAT_INSERT: {
|
||||
string argument = to_utf8(cmd.argument());
|
||||
if (!argument.empty()) {
|
||||
if (!contains(argument, "sideways")) {
|
||||
if (!contains(argument, "wide"))
|
||||
argument += "\nwide false";
|
||||
argument += "\nsideways false";
|
||||
}
|
||||
}
|
||||
return new InsetFloat(buf, argument);
|
||||
}
|
||||
|
||||
case LFUN_FLOAT_WIDE_INSERT: {
|
||||
InsetFloat * fl = new InsetFloat(buf, to_utf8(cmd.argument()));
|
||||
string argument = to_utf8(cmd.argument());
|
||||
if (!argument.empty()) {
|
||||
if (!contains(argument, "sideways")) {
|
||||
if (!contains(argument, "wide"))
|
||||
argument += "\nwide true";
|
||||
argument += "\nsideways false";
|
||||
}
|
||||
}
|
||||
InsetFloat * fl = new InsetFloat(buf, argument);
|
||||
fl->setWide(true);
|
||||
return fl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user