From 5be391b274f2cbf4a1da03bc5ee2136cb6c4e660 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 27 Apr 2023 20:37:32 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index 2f0156dfc9..ff450d1b9a 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; -- 2.39.5