]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathGrid.h
Generalise the deletion protection mechanism from math to text (#9540)
[lyx.git] / src / mathed / InsetMathGrid.h
index 4300dc31881d6f580c67823f97b2736e2fde07c2..886d03a8ee3321e33661988bcf20c32862ff9576 100644 (file)
@@ -103,9 +103,6 @@ public:
        void metrics(MetricsInfo & mi, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
-       /// draw decorations.
-       void drawDecoration(PainterInfo & pi, int x, int y) const
-       { drawMarkers2(pi, x, y); }
        ///
        void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
@@ -248,9 +245,9 @@ protected:
        /// Width of cell, taking combined columns into account
        int cellWidth(idx_type idx) const;
        ///
-       virtual int leftMargin() const { return 1; }
+       virtual int leftMargin() const { return 0; }
        ///
-       virtual int rightMargin() const { return 1; }
+       virtual int rightMargin() const { return 0; }
 
        /// returns proper 'end of line' code for LaTeX
        virtual docstring eolString(row_type row, bool fragile, bool latex,