]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetfloat.C
index 8b8babdc11c72f7cfa4d2fb7be6027d822804978..e31523429f107f9da5c754b0923f0d5a92981d9b 100644 (file)
@@ -185,10 +185,10 @@ void InsetFloat::read(Buffer const * buf, LyXLex & lex)
 void InsetFloat::validate(LaTeXFeatures & features) const
 {
        if (contains(placement(), "H")) {
-               features.floats = true;
+               features.require("float");
        }
        
-       features.usedFloats.insert(floatType_);
+       features.useFloat(floatType_);
        InsetCollapsable::validate(features);
 }
 
@@ -271,26 +271,6 @@ bool InsetFloat::showInsetDialog(BufferView * bv) const
 }
 
 
-void InsetFloat::insetButtonRelease(BufferView * bv, int x, int y, int button)
-{
-#if 1
-       if ((x >= 0)  && (x < button_length) &&
-           (y >= button_top_y) &&  (y <= button_bottom_y) &&
-           (button == 3))
-       {
-               showInsetDialog(bv);
-               return;
-       }
-#else
-       if (button == 3) {
-               showInsetDialog(bv);
-               return;
-       }
-#endif
-       InsetCollapsable::insetButtonRelease(bv, x, y, button);
-}
-
-
 string const & InsetFloat::type() const 
 {
        return floatType_;