From 2e4ee6f503aeef770d0487bfadc31bfbbbff34d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Wed, 24 Apr 2002 15:37:16 +0000 Subject: [PATCH] ws changes only git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4056 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView_pimpl.C | 2 +- src/text.C | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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(), -- 2.39.2