#include "insets/insetenv.h"
-#include "mathed/math_hullinset.h"
+#include "mathed/InsetMathHull.h"
#include "support/textutils.h"
if (font == LyXFont(LyXFont::ALL_IGNORE)) {
// Could only happen with user style
cur.message(_("No font change defined. "
- "Use Character under the Layout menu to define font change."));
+ "Use Character under the Layout menu to define font change."));
return;
}
void LyXText::setCursorIntern(LCursor & cur,
pit_type par, pos_type pos, bool setfont, bool boundary)
{
+ BOOST_ASSERT(this == cur.text());
cur.boundary(boundary);
setCursor(cur.top(), par, pos);
cur.setTargetX();
c = bidi.vis2log(vc);
last_tmpx = tmpx;
if (body_pos > 0 && c == body_pos - 1) {
- string lsep = layout->labelsep;
- docstring dlsep(lsep.begin(), lsep.end());
+ string lsep = layout->labelsep;
+ docstring dlsep(lsep.begin(), lsep.end());
tmpx += r.label_hfill +
font_metrics::width(dlsep, getLabelFont(par));
if (par.isLineSeparator(body_pos - 1))
LCursor old = cur;
// Go to middle of previous row. 16 found to work OK;
// 12 = top/bottom margin of display math
- int const margin = 3 * MathHullInset::displayMargin() / 2;
+ int const margin = 3 * InsetMathHull::displayMargin() / 2;
editXY(cur, x, y - par.rows()[row].ascent() - margin);
cur.clearSelection();
int const y = bv_funcs::getPos(cur, cur.boundary()).y_;
LCursor old = cur;
// To middle of next row
- int const margin = 3 * MathHullInset::displayMargin() / 2;
+ int const margin = 3 * InsetMathHull::displayMargin() / 2;
editXY(cur, x, y + par.rows()[row].descent() + margin);
cur.clearSelection();