From: Lars Gullik Bjønnes Date: Fri, 5 Apr 2002 15:17:24 +0000 (+0000) Subject: ws changes X-Git-Tag: 1.6.10~19492 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=80d6670b7ba70f9bc2c6058e6bae5d4f076550b8;p=features.git ws changes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3912 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index e4c70906e4..cad89d3fdf 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -412,7 +412,7 @@ void BufferView::Pimpl::updateScrollbar() lyxerr[Debug::GUI] << "text_height now " << text_height << endl; lyxerr[Debug::GUI] << "work_height " << work_height << endl; - + /* If the text is smaller than the working area, the scrollbar * maximum must be the working area height. No scrolling will * be possible */ @@ -435,7 +435,7 @@ void BufferView::Pimpl::updateScrollbar() void BufferView::Pimpl::scrollCB(double value) { lyxerr[Debug::GUI] << "scrollCB of " << value << endl; - + if (!buffer_) return; current_scrollbar_value = long(value); diff --git a/src/screen.C b/src/screen.C index 66df051f80..83c19bc19a 100644 --- a/src/screen.C +++ b/src/screen.C @@ -527,7 +527,7 @@ void LyXScreen::toggleToggle(LyXText * text, BufferView * bv, static_cast(text->first_y + owner.height()))-offset; int const top = min(max(top_tmp, text->first_y), static_cast(text->first_y + owner.height()))-offset; - + drawFromTo(text, bv, top - text->first_y, bottom - text->first_y, y_offset, x_offset);