]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.C
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetfloat.C
index 3e5ae5b00415ad5c04871ec4100bce2904acb984..029e86c22dee4fdd7a39c778904b2a6a07f571db 100644 (file)
@@ -205,7 +205,7 @@ bool InsetFloat::InsertInsetAllowed(Inset * in) const
 
 void InsetFloat::InsetButtonRelease(BufferView * bv, int x, int y, int button)
 {
-       if (x >= 0
+       if (x >= top_x
            && x < button_length
            && y >= button_top_y
            && y < button_bottom_y
@@ -213,6 +213,7 @@ void InsetFloat::InsetButtonRelease(BufferView * bv, int x, int y, int button)
                // This obviously need to change.
                lyxerr << "InsetFloat: Let's edit this floats parameters!"
                       << endl;
+               //bv->owner()->getDialogs()->showFloat(this);
        } else {
                InsetCollapsable::InsetButtonRelease(bv, x, y, button);
        }
@@ -229,7 +230,9 @@ void InsetFloat::placement(string const & p)
 {
        // Here we should only allow the placement to be set
        // if a valid value.
+#ifdef WITH_WARNINGS
 #warning FIX!
+#endif
        floatPlacement_ = p;
 }