[LyX/master] Do not let cursor overlap with inserted graphics.

Pavel Sanda sanda at lyx.org
Thu Apr 27 17:31:56 UTC 2023


commit 5be391b274f2cbf4a1da03bc5ee2136cb6c4e660
Author: Pavel Sanda <sanda at lyx.org>
Date:   Thu Apr 27 20:37:32 2023 +0200

    Do not let cursor overlap with inserted graphics.
    
    https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219612.html
---
 src/insets/InsetGraphics.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h
index 2f0156d..ff450d1 100644
--- a/src/insets/InsetGraphics.h
+++ b/src/insets/InsetGraphics.h
@@ -97,9 +97,9 @@ public:
 	///
 	int bottomOffset(BufferView const *) const override { return 0; }
 	///
-	int leftOffset(BufferView const *) const override { return 0; }
+	int leftOffset(BufferView const *) const override { return 3; }
 	///
-	int rightOffset(BufferView const *) const override { return 0; }
+	int rightOffset(BufferView const *) const override { return 2; }
 
 	///
 	void metrics(MetricsInfo &, Dimension &) const override;


More information about the lyx-cvs mailing list