]> git.lyx.org Git - features.git/commitdiff
* InsetCollapsable: simplification.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 16 Jul 2009 07:44:35 +0000 (07:44 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 16 Jul 2009 07:44:35 +0000 (07:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30621 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp

index e82b6d18c56f49e369047b9ed04d6757e33799bd..f6afbbc2c8f25c70a2647415ddb4fefec84e85d7 100644 (file)
@@ -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;