From: Lars Gullik Bjønnes Date: Wed, 24 Apr 2002 15:37:16 +0000 (+0000) Subject: ws changes only X-Git-Tag: 1.6.10~19350 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2e4ee6f503aeef770d0487bfadc31bfbbbff34d2;p=features.git ws changes only git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4056 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 043a1410d2..be52aba916 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -1292,7 +1292,7 @@ void BufferView::Pimpl::cursorNext(LyXText * text) // span several workarea-heights) we'll move to the top again, but this // is better than just jump down and only display part of the row. new_y = bv_->text->first_y + workarea_.height(); - } else { + } else { if (text->inset_owner) { new_y = bv_->text->cursor.iy() + bv_->theLockingInset()->insetInInsetY() diff --git a/src/text.C b/src/text.C index 217398f890..54c013c0c0 100644 --- a/src/text.C +++ b/src/text.C @@ -1159,7 +1159,7 @@ int LyXText::numberOfSeparators(Buffer const * buf, Row const * row) const { pos_type last = rowLastPrintable(row); pos_type p = max(row->pos(), beginningOfMainBody(buf, row->par())); - + int n = 0; for (; p <= last; ++p) { if (row->par()->isSeparator(p)) { @@ -1955,10 +1955,10 @@ void LyXText::insertChar(BufferView * bview, char c) // Is there a break one row above if (row->previous() && row->previous()->par() == row->par() && (cursor.par()->isLineSeparator(cursor.pos()) - || cursor.par()->isNewline(cursor.pos()) - || ((cursor.pos() < cursor.par()->size()) && - cursor.par()->isInset(cursor.pos()+1)) - || cursor.row()->fill() == -1)) + || cursor.par()->isNewline(cursor.pos()) + || ((cursor.pos() < cursor.par()->size()) && + cursor.par()->isInset(cursor.pos()+1)) + || cursor.row()->fill() == -1)) { pos_type z = nextBreakPoint(bview, row->previous(),