}
-void Text::changeDepth(Cursor const & cur, DEPTH_CHANGE type)
+void Text::changeDepth(Cursor & cur, DEPTH_CHANGE type)
{
LBUFERR(this == cur.text());
pit_type const beg = cur.selBegin().pit();
}
max_depth = par.getMaxDepthAfter();
}
+ cur.setCurrentFont();
// this handles the counter labels, and also fixes up
// depth values for follow-on (child) paragraphs
cur.forceBufferUpdate();
};
/// Increase or decrease the nesting depth of the selected paragraph(s)
/// FIXME: replace Cursor with DocIterator.
- void changeDepth(Cursor const & cur, DEPTH_CHANGE type);
+ void changeDepth(Cursor & cur, DEPTH_CHANGE type);
/// Returns whether something would be changed by changeDepth
/// FIXME: replace Cursor with DocIterator.