]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Micro-optimization.
[lyx.git] / src / LaTeXFeatures.cpp
index 6b97cb34983ab58bb516f193c97dd40b968e45b6..35fbe1933a02031e5dc85264e859fccc23e5f647 100644 (file)
@@ -432,7 +432,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.builtin()) {
+       if (!fl.floattype().empty() && fl.needsFloatPkg()) {
                require("float");
        }
 }
@@ -1156,7 +1156,7 @@ void LaTeXFeatures::getFloatDefinitions(odocstream & os) const
                Floating const & fl = floats.getType(cit->first);
 
                // For builtin floats we do nothing.
-               if (fl.builtin()) 
+               if (!fl.needsFloatPkg()) 
                        continue;
 
                // We have to special case "table" and "figure"