Changeset - r20670:c15fc236f61a
[Not reviewed]
master
0 1 0
fonsinchen - 11 years ago 2013-08-10 12:47:11
fonsinchen@openttd.org
(svn r25708) -Fix: don't return NULL as bool
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/textbuf.cpp
Show inline comments
 
@@ -162,7 +162,7 @@ bool Textbuf::InsertString(const char *s
 
	uint16 insertpos = (marked && this->marklength != 0) ? this->markpos : this->caretpos;
 
	if (insert_location != NULL) {
 
		insertpos = insert_location - this->buf;
 
		if (insertpos > this->bytes) return NULL;
 
		if (insertpos > this->bytes) return false;
 

	
 
		if (replacement_end != NULL) {
 
			this->DeleteText(insertpos, replacement_end - this->buf, str == NULL);
0 comments (0 inline, 0 general)