made _BInlineInput_::AddClause() more robust in low memory conditions

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20870 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-04-27 20:35:36 +00:00
parent 7a93cf5a82
commit 0d4fbcc8fe
3 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -4427,7 +4427,8 @@ BTextView::HandleInputMethodChanged(BMessage *message)
int32 clauseEnd;
while (message->FindInt32("be:clause_start", clauseCount, &clauseStart) == B_OK &&
message->FindInt32("be:clause_end", clauseCount, &clauseEnd) == B_OK) {
fInline->AddClause(clauseStart, clauseEnd);
if (!fInline->AddClause(clauseStart, clauseEnd))
break;
clauseCount++;
}