#include "mathed/InsetMathScript.h"
#include "mathed/MathMacroTable.h"
-#include "frontends/Selection.h"
-
#include "support/limited_stack.h"
#include <boost/assert.hpp>
operator[](i).inset().infoize(os);
os << " ";
}
- if (pos() != 0)
- prevInset()->infoize2(os);
+ if (pos() != 0) {
+ InsetBase const * inset = prevInset();
+ // prevInset() can return 0 in certain case.
+ if (inset)
+ prevInset()->infoize2(os);
+ }
// overwite old message
os << " ";
}
resetAnchor();
selection() = sel;
- theSelection().haveSelection(sel);
+ cap::saveSelection(*this);
return true;
}
#include "mathed/InsetMathScript.h"
#include "mathed/InsetMathUnknown.h"
#include "mathed/MathFactory.h"
-#include "mathed/MathMacroArgument.h"
#include "mathed/MathStream.h"
#include "mathed/MathSupport.h"