[LyX/master] Fixup 04ece4f0d6a: fix cursor position
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Wed Feb 22 08:41:16 UTC 2023
commit a3d58d2884976eaf6c7ea22c2caace51f8e5c566
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Mon Feb 20 17:14:03 2023 +0100
Fixup 04ece4f0d6a: fix cursor position
---
src/insets/InsetCollapsible.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp
index d629aaa..f76dc99 100644
--- a/src/insets/InsetCollapsible.cpp
+++ b/src/insets/InsetCollapsible.cpp
@@ -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;
More information about the lyx-cvs
mailing list