]> git.lyx.org Git - features.git/blobdiff - src/factory.C
move floatlist to textclass
[features.git] / src / factory.C
index 6decdacca262703730c5a757259199a88d18615e..54d08fa2ea7b80edb2c304fa63b030407df5b118 100644 (file)
@@ -46,17 +46,17 @@ Inset * createInset(FuncRequest const & cmd)
                        return new InsetOptArg(params);
 
                case LFUN_INSET_FLOAT:
-                       // check if the float type exist
-                       if (floatList.typeExist(cmd.argument))
+                       // check if the float type exists
+                       if (params.getLyXTextClass().floats().typeExist(cmd.argument))
                                return new InsetFloat(params, cmd.argument);
                        lyxerr << "Non-existent float type: " << cmd.argument << endl;
                        return 0;
 
                case LFUN_INSET_WIDE_FLOAT:
-                       // check if the float type exist
-                       if (floatList.typeExist(cmd.argument)) {
+                       // check if the float type exists
+                       if (params.getLyXTextClass().floats().typeExist(cmd.argument)) {
                                InsetFloat * p = new InsetFloat(params, cmd.argument);
-                               p->wide(true);
+                               p->wide(true, params);
                        }
                        lyxerr << "Non-existent float type: " << cmd.argument << endl;
                        return 0;