]> git.lyx.org Git - features.git/commitdiff
*BufferView: Remove default parameter value.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 14 Jun 2010 21:38:38 +0000 (21:38 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 14 Jun 2010 21:38:38 +0000 (21:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34657 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp
src/BufferView.h

index 42d6abbed29c82f827d782c73b833f996485a1f1..74152382887da3693edc317eaa5aea7515e5ffdb 100644 (file)
@@ -587,7 +587,7 @@ void BufferView::scrollDocView(int value)
        // cut off at the top
        if (value <= d->scrollbarParameters_.min) {
                DocIterator dit = doc_iterator_begin(&buffer_);
-               showCursor(dit);
+               showCursor(dit, false);
                LYXERR(Debug::SCROLLING, "scroll to top");
                return;
        }
@@ -596,7 +596,7 @@ void BufferView::scrollDocView(int value)
        if (value >= d->scrollbarParameters_.max) {
                DocIterator dit = doc_iterator_end(&buffer_);
                dit.backwardPos();
-               showCursor(dit);
+               showCursor(dit, false);
                LYXERR(Debug::SCROLLING, "scroll to bottom");
                return;
        }
@@ -621,7 +621,7 @@ void BufferView::scrollDocView(int value)
        DocIterator dit = doc_iterator_begin(&buffer_);
        dit.pit() = i;
        LYXERR(Debug::SCROLLING, "value = " << value << " -> scroll to pit " << i);
-       showCursor(dit);
+       showCursor(dit, false);
 }
 
 
index eaf063182bf4b6715a2d0e9dd797e1493af40104..8d48301007bb1800159512a82277bac279bc1957 100644 (file)
@@ -159,7 +159,7 @@ public:
        /// This method will automatically scroll and update the BufferView
        /// if needed.
        /// \param recenter Whether the cursor should be centered on screen
-       void showCursor(DocIterator const & dit, bool recenter = false);
+       void showCursor(DocIterator const & dit, bool recenter);
        /// Scroll to the cursor.
        void scrollToCursor();
        /// Scroll to the cursor.