- // check if the float type exists
- string const argument = to_utf8(cmd.argument());
- if (buf.params().documentClass().floats().typeExist(argument))
- return new InsetFloat(buf, argument);
- lyxerr << "Non-existent float type: " << argument << endl;
+ 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);