mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
* InsetCollapsable: simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30621 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b1ce114e5
commit
a333697538
@ -254,9 +254,9 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
|
||||
// Draw button first -- top, left or only
|
||||
Dimension dimc = dimensionCollapsed(bv);
|
||||
|
||||
if (geometry(*pi.base.bv) == TopButton ||
|
||||
geometry(*pi.base.bv) == LeftButton ||
|
||||
geometry(*pi.base.bv) == ButtonOnly) {
|
||||
if (geometry(bv) == TopButton ||
|
||||
geometry(bv) == LeftButton ||
|
||||
geometry(bv) == ButtonOnly) {
|
||||
button_dim.x1 = x + 0;
|
||||
button_dim.x2 = x + dimc.width();
|
||||
button_dim.y1 = y - dimc.asc;
|
||||
|
Loading…
Reference in New Issue
Block a user