From 0bc436fec91d25058e534b74eb8f62a6278e5434 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 28 Oct 2013 12:15:44 +0000 Subject: [PATCH] (svn r25925) -Fix: Textfile content was clipped incorrectly and was drawn past the bottom end. (LordAro) --- src/textfile_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp index 05c534c59b..95f2b0d773 100644 --- a/src/textfile_gui.cpp +++ b/src/textfile_gui.cpp @@ -134,7 +134,7 @@ void TextfileWindow::SetupScrollbars() const int bottom = r.bottom - WD_FRAMETEXT_BOTTOM; DrawPixelInfo new_dpi; - if (!FillDrawPixelInfo(&new_dpi, x, y, right - x + 1, r.bottom - y + 1)) return; + if (!FillDrawPixelInfo(&new_dpi, x, y, right - x + 1, bottom - y + 1)) return; DrawPixelInfo *old_dpi = _cur_dpi; _cur_dpi = &new_dpi;