]> git.lyx.org Git - features.git/commitdiff
Do not let cursor overlap with inserted graphics.
authorPavel Sanda <sanda@lyx.org>
Thu, 27 Apr 2023 18:37:32 +0000 (20:37 +0200)
committerPavel Sanda <sanda@lyx.org>
Thu, 27 Apr 2023 18:37:32 +0000 (20:37 +0200)
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219612.html

src/insets/InsetGraphics.h

index 2f0156dfc9adfb0944db8a8027a0c2a29ea23bd2..ff450d1b9a73a5c778d655830c8525b8f1284d60 100644 (file)
@@ -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;