From 3d4bb41062ebcdce6296464df74f3cea16b6460a Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 7 Jan 2016 13:18:49 +0100 Subject: [PATCH] - textbox: allow users setting screen_StartX/Y = 0 --- src/gui/widget/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 70d642bf8..c42fa67e2 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -580,7 +580,7 @@ void CTextBox::refreshText(void) } //detect corrupt position values - if ((ax<=0) || (ay<=0)){ + if ((ax<0) || (ay<0)){ dprintf(DEBUG_NORMAL, "\033[33m[CTextBox] [%s - %d] ERROR! position out of range: ax = %d, ay = %d, dx = %d, dy = %d\033[0m\n", __func__, __LINE__, ax, ay, dx, dy); return; }