X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfloat.C;h=e31523429f107f9da5c754b0923f0d5a92981d9b;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=8b8babdc11c72f7cfa4d2fb7be6027d822804978;hpb=2470d9297d3f2c303f555c8f235d022b19396679;p=lyx.git diff --git a/src/insets/insetfloat.C b/src/insets/insetfloat.C index 8b8babdc11..e31523429f 100644 --- a/src/insets/insetfloat.C +++ b/src/insets/insetfloat.C @@ -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_;