From 069c457407b6037856f2dc19c52e89be811a36d6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 21 Nov 2013 21:22:38 +0100 Subject: [PATCH] [DEBUG] correction of the scrolling wrong position --- sources/appl/Gui/TextViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/appl/Gui/TextViewer.cpp b/sources/appl/Gui/TextViewer.cpp index daa75a7..e407cfa 100644 --- a/sources/appl/Gui/TextViewer.cpp +++ b/sources/appl/Gui/TextViewer.cpp @@ -695,7 +695,7 @@ void appl::TextViewer::updateScrolling(void) { } else if (realCursorPosition.y() > m_originScrooled.y()+m_size.y()-lineSize*2.0f) { m_originScrooled.setY(realCursorPosition.y()-m_size.y()+lineSize*2.0f); } - realCursorPosition.setMin(vec2(0,0)); + m_originScrooled.setMax(vec2(0,0)); }