]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Help avoiding shortcut clashes by discriminating strings.
[lyx.git] / src / LaTeXFeatures.cpp
index bdf264f9728af0052f02e792225a2787069fc529..ac9c1ca4a4ce240f4622ab34db027f82a25b741e 100644 (file)
@@ -459,7 +459,7 @@ void LaTeXFeatures::useFloat(string const & name, bool subfloat)
        // use the "H" modifier. This includes modified table and
        // figure floats. (Lgb)
        Floating const & fl = params_.documentClass().floats().getType(name);
-       if (!fl.floattype().empty() && fl.needsFloatPkg()) {
+       if (!fl.floattype().empty() && fl.usesFloatPkg()) {
                require("float");
        }
 }
@@ -1297,7 +1297,7 @@ void LaTeXFeatures::getFloatDefinitions(odocstream & os) const
                Floating const & fl = floats.getType(cit->first);
 
                // For builtin floats we do nothing.
-               if (!fl.needsFloatPkg()) 
+               if (fl.isPredefined())
                        continue;
 
                // We have to special case "table" and "figure"