]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathHull.h
Generalise the deletion protection mechanism from math to text (#9540)
[features.git] / src / mathed / InsetMathHull.h
index e04d68e91860caf370a6f709d955ce9a28b0f1ba..bc574b9650ee72a8387ac16113d1d3b27215c610 100644 (file)
@@ -189,6 +189,8 @@ public:
        InsetCode lyxCode() const { return MATH_HULL_CODE; }
        ///
        bool canPaintChange(BufferView const &) const;
+       ///
+       bool confirmDeletion() const { return nargs() != 1 || !cell(0).empty(); }
 
 protected:
        InsetMathHull(InsetMathHull const &);