]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsible.cpp
Run codespell on tex2lyx/, client/, convert/ and graphics/
[lyx.git] / src / insets / InsetCollapsible.cpp
index 09e5f3d9a98751653716ee3d491f4220ec21b95c..20e595ff32e22ed0371a58e913afc4969e75e9eb 100644 (file)
@@ -172,9 +172,10 @@ int InsetCollapsible::bottomOffset(BufferView const * bv) const
 {
        switch (geometry(*bv)) {
        case Corners:
-               return InsetText::topOffset(bv) / 4;
+       case SubLabel:
+               return InsetText::bottomOffset(bv) / 4;
        default:
-               return InsetText::topOffset(bv);
+               return InsetText::bottomOffset(bv);
        }
 }
 
@@ -370,7 +371,7 @@ void InsetCollapsible::draw(PainterInfo & pi, int x, int y) const
                        int w = 0;
                        int a = 0;
                        int d = 0;
-                       Color const col = pi.full_repaint ? Color_none : pi.backgroundColor(this);
+                       Color const col = pi.full_repaint ? Color_none : pi.backgroundColor();
                        theFontMetrics(font).rectText(buttonLabel(bv), w, a, d);
                        int const ww = max(textdim.wid, w);
                        pi.pain.rectText(x + (ww - w) / 2, y + desc + a,