]> git.lyx.org Git - features.git/commitdiff
Fixup 04ece4f0d6a: fix cursor position
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 20 Feb 2023 16:14:03 +0000 (17:14 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Feb 2023 09:32:24 +0000 (10:32 +0100)
src/insets/InsetCollapsible.cpp

index d629aaaca40d51e80e5a7e773563b480fee8aa8b..f76dc99348c07643029c283f2e8156fd2d1cc139 100644 (file)
@@ -424,7 +424,7 @@ void InsetCollapsible::cursorPos(BufferView const & bv,
 
        switch (geometry(bv)) {
        case LeftButton:
-               x += dimensionCollapsed(bv).wid;
+               x += dimensionCollapsed(bv).wid - leftOffset(&bv) / 2;
                break;
        case TopButton: {
                y += dimensionCollapsed(bv).des + textdim.asc;