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
// 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);
}
{
// Here we should only allow the placement to be set
// if a valid value.
+#ifdef WITH_WARNINGS
#warning FIX!
+#endif
floatPlacement_ = p;
}