2000-04-10 Juergen Vigna <jug@sad.it>
+ * src/BufferView2.C (showLockedInsetCursor): small bugfix for
+ misplaced cursor when inset in inset is locked.
+
+ * src/insets/insettext.C (LocalDispatch): small fix so that a
+ BREAKLINE is not inserted if we don't permit it with autBreakRows.
+
* src/insets/insetfoot.C (GetDrawFont): implemented this as the
footnote font should be decreased in size twice when displaying.
void BufferView::showLockedInsetCursor(long x, long y, int asc, int desc)
{
if (the_locking_inset && available()) {
- y += text->cursor.y;
+ y += text->cursor.y +
+ the_locking_inset->InsetInInsetY();
pimpl_->screen->ShowManualCursor(x, y, asc, desc,
LyXScreen::BAR_SHAPE);
}
return DISPATCHED;
case LFUN_BREAKPARAGRAPH:
case LFUN_BREAKLINE:
+ if (!autoBreakRows)
+ return DISPATCHED;
bv->text->SetUndo(Undo::INSERT,
bv->text->cursor.par->ParFromPos(bv->text->cursor.pos)->previous,
bv->text->cursor.par->ParFromPos(bv->text->cursor.pos)->next);