Fixed a bug in write_unicode_char() - it returned the size of the character
not how many bytes were actually written (which could differ with newlines and indention). Now use the new rgb_color == operator instead of a memcmp(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10922 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
08f1d3c965
commit
b0e067b804
@ -159,8 +159,7 @@ write_unicode_char(conversion_context &context, uint32 c,
|
||||
length = 4;
|
||||
}
|
||||
|
||||
write_text(context, bytes, length, target);
|
||||
return length;
|
||||
return write_text(context, bytes, length, target);
|
||||
}
|
||||
|
||||
|
||||
@ -260,7 +259,7 @@ text_runs_are_equal(text_run *a, text_run *b)
|
||||
return false;
|
||||
|
||||
return a->offset == b->offset
|
||||
&& !memcmp(&a->color, &b->color, sizeof(rgb_color))
|
||||
&& a->color == b->color
|
||||
&& a->font == b->font;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user