]> git.lyx.org Git - features.git/blobdiff - src/mathed/MacroTable.h
Fix recursive math macro crash (bug #9140)
[features.git] / src / mathed / MacroTable.h
index 6f8201f29e70c001b1ad7e93912622f47dee6f20..0f9f60dc41b74f8a67301f555fba3296cda6aafe 100644 (file)
@@ -52,7 +52,8 @@ public:
        size_t numargs() const { updateData(); return numargs_; }
        /// replace #1,#2,... by given MathAtom 0,1,.., _including_ the possible
        /// optional argument
-       void expand(std::vector<MathData> const & from, MathData & to) const;
+       /// \return whether anything was expanded
+       bool expand(std::vector<MathData> const & from, MathData & to) const;
        /// number of optional arguments
        size_t optionals() const;
        ///