(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.

This commit is contained in:
frosch
2012-11-14 22:46:49 +00:00
parent fc2b12acca
commit f2221e8b89
3 changed files with 4 additions and 5 deletions

View File

@@ -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);