]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
This is the first of a series of commits that will make InsetLayout a real class.
[lyx.git] / src / Cursor.cpp
index b778cfa19d302e844a916fab177e52214b0fd45c..405d72b4f0af6bc4ea460e155b1506da528329bb 100644 (file)
@@ -1292,6 +1292,12 @@ InsetMathUnknown * Cursor::activeMacro()
 }
 
 
+InsetMathUnknown const * Cursor::activeMacro() const
+{
+       return inMacroMode() ? prevAtom().nucleus()->asUnknownInset() : 0;
+}
+
+
 void Cursor::pullArg()
 {
        // FIXME: Look here