From a333697538b32c1e9c15ab17b8c3d253f1b82123 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 16 Jul 2009 07:44:35 +0000 Subject: [PATCH] * InsetCollapsable: simplification. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30621 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCollapsable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index e82b6d18c5..f6afbbc2c8 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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; -- 2.39.2