mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Simplify by using adjustCommand, and fix bug in the process
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7730 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1331aacf59
commit
22aa494eba
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||||
|
|
||||||
* several files: change Assert to BOOST_ASSERT
|
* several files: change Assert to BOOST_ASSERT
|
||||||
|
@ -319,15 +319,14 @@ InsetOld::RESULT InsetCollapsable::localDispatch(FuncRequest const & cmd)
|
|||||||
bv->buffer()->markDirty();
|
bv->buffer()->markDirty();
|
||||||
inset.localDispatch(cmd);
|
inset.localDispatch(cmd);
|
||||||
} else {
|
} else {
|
||||||
FuncRequest cmd1 = cmd;
|
|
||||||
if (!bv->lockInset(this))
|
if (!bv->lockInset(this))
|
||||||
return DISPATCHED;
|
return DISPATCHED;
|
||||||
if (cmd.y <= button_dim.y2) {
|
if (cmd.y <= button_dim.y2) {
|
||||||
|
FuncRequest cmd1 = cmd;
|
||||||
cmd1.y = 0;
|
cmd1.y = 0;
|
||||||
} else {
|
inset.localDispatch(cmd1);
|
||||||
cmd1.y = ascent() + cmd.y - (height_collapsed() + inset.ascent());
|
} else
|
||||||
}
|
inset.localDispatch(adjustCommand(cmd));
|
||||||
inset.localDispatch(cmd);
|
|
||||||
}
|
}
|
||||||
return DISPATCHED;
|
return DISPATCHED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user