From f2221e8b89d0e3030679a36bfaaa75c64951aed3 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 14 Nov 2012 22:46:49 +0000 Subject: (svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes sense if it is smaller than the second one, also its unit is not pixels. --- src/ai/ai_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 8a8db5b5c..875ccbffb 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1031,7 +1031,7 @@ struct AIDebugWindow : public QueryStringBaseWindow { this->last_vscroll_pos = 0; this->autoscroll = true; this->highlight_row = -1; - this->text.Initialize(this->edit_str_buf, this->edit_str_size, MAX_BREAK_STR_STRING_LENGTH); + this->text.Initialize(this->edit_str_buf, this->edit_str_size); /* Restore the break string value from static variable */ strecpy(this->edit_str_buf, this->break_string, this->edit_str_buf + MAX_BREAK_STR_STRING_LENGTH); -- cgit v1.2.3-70-g09d2