[LyX/master] Make script inset much tighter in texted.

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Jan 15 10:08:36 UTC 2020


commit 9176e60b7bcab3e355521a86ddb4c2778cd9b29e
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Jan 15 11:08:38 2020 +0100

    Make script inset much tighter in texted.
    
    We use the fact that offsets can be set separately for each inset.
---
 src/insets/InsetScript.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetScript.h b/src/insets/InsetScript.h
index 1aee8e8..cd61117 100644
--- a/src/insets/InsetScript.h
+++ b/src/insets/InsetScript.h
@@ -68,6 +68,16 @@ public:
 	docstring layoutName() const;
 	///
 	DisplayType display() const;
+
+	///
+	int topOffset(BufferView const *) const { return 0; }
+	///
+	int bottomOffset(BufferView const *) const { return 0; }
+	///
+	int leftOffset(BufferView const *) const { return 0; }
+	///
+	int rightOffset(BufferView const *) const { return 0; }
+
 	///
 	void metrics(MetricsInfo &, Dimension &) const;
 	///


More information about the lyx-cvs mailing list