* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Uwe Stöhr
+ * \author Uwe Stöhr
*
* Full author contact details are available in file CREDITS.
*/
#include "InsetMathCancel.h"
-#include "LaTeXFeatures.h"
#include "MathStream.h"
+#include "LaTeXFeatures.h"
+#include "MetricsInfo.h"
+
#include "frontends/Painter.h"
#include <ostream>
void InsetMathCancel::metrics(MetricsInfo & mi, Dimension & dim) const
{
+ Changer dummy = mi.base.changeEnsureMath();
cell(0).metrics(mi, dim);
- metricsMarkers(dim);
+ metricsMarkers(mi, dim);
}
void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const
{
+ Changer dummy = pi.base.changeEnsureMath();
// We first draw the text and then an arrow
ColorCode const origcol = pi.base.font.color();
cell(0).draw(pi, x + 1, y);