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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user