+2003-09-10 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insetcollapsable.C: Simplify by using adjustCommand, and fix bug
+ in the process
+
2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
* several files: change Assert to BOOST_ASSERT
bv->buffer()->markDirty();
inset.localDispatch(cmd);
} else {
- FuncRequest cmd1 = cmd;
if (!bv->lockInset(this))
return DISPATCHED;
if (cmd.y <= button_dim.y2) {
+ FuncRequest cmd1 = cmd;
cmd1.y = 0;
- } else {
- cmd1.y = ascent() + cmd.y - (height_collapsed() + inset.ascent());
- }
- inset.localDispatch(cmd);
+ inset.localDispatch(cmd1);
+ } else
+ inset.localDispatch(adjustCommand(cmd));
}
return DISPATCHED;
}