mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
*BufferView: Remove default parameter value.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34657 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
94c113d24f
commit
e1ba93a068
@ -587,7 +587,7 @@ void BufferView::scrollDocView(int value)
|
|||||||
// cut off at the top
|
// cut off at the top
|
||||||
if (value <= d->scrollbarParameters_.min) {
|
if (value <= d->scrollbarParameters_.min) {
|
||||||
DocIterator dit = doc_iterator_begin(&buffer_);
|
DocIterator dit = doc_iterator_begin(&buffer_);
|
||||||
showCursor(dit);
|
showCursor(dit, false);
|
||||||
LYXERR(Debug::SCROLLING, "scroll to top");
|
LYXERR(Debug::SCROLLING, "scroll to top");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -596,7 +596,7 @@ void BufferView::scrollDocView(int value)
|
|||||||
if (value >= d->scrollbarParameters_.max) {
|
if (value >= d->scrollbarParameters_.max) {
|
||||||
DocIterator dit = doc_iterator_end(&buffer_);
|
DocIterator dit = doc_iterator_end(&buffer_);
|
||||||
dit.backwardPos();
|
dit.backwardPos();
|
||||||
showCursor(dit);
|
showCursor(dit, false);
|
||||||
LYXERR(Debug::SCROLLING, "scroll to bottom");
|
LYXERR(Debug::SCROLLING, "scroll to bottom");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -621,7 +621,7 @@ void BufferView::scrollDocView(int value)
|
|||||||
DocIterator dit = doc_iterator_begin(&buffer_);
|
DocIterator dit = doc_iterator_begin(&buffer_);
|
||||||
dit.pit() = i;
|
dit.pit() = i;
|
||||||
LYXERR(Debug::SCROLLING, "value = " << value << " -> scroll to pit " << i);
|
LYXERR(Debug::SCROLLING, "value = " << value << " -> scroll to pit " << i);
|
||||||
showCursor(dit);
|
showCursor(dit, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ public:
|
|||||||
/// This method will automatically scroll and update the BufferView
|
/// This method will automatically scroll and update the BufferView
|
||||||
/// if needed.
|
/// if needed.
|
||||||
/// \param recenter Whether the cursor should be centered on screen
|
/// \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.
|
/// Scroll to the cursor.
|
||||||
void scrollToCursor();
|
void scrollToCursor();
|
||||||
/// Scroll to the cursor.
|
/// Scroll to the cursor.
|
||||||
|
Loading…
Reference in New Issue
Block a user