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:
@@ -159,8 +159,7 @@ write_unicode_char(conversion_context &context, uint32 c,
|
|||||||
length = 4;
|
length = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
write_text(context, bytes, length, target);
|
return write_text(context, bytes, length, target);
|
||||||
return length;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -260,7 +259,7 @@ text_runs_are_equal(text_run *a, text_run *b)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
return a->offset == b->offset
|
return a->offset == b->offset
|
||||||
&& !memcmp(&a->color, &b->color, sizeof(rgb_color))
|
&& a->color == b->color
|
||||||
&& a->font == b->font;
|
&& a->font == b->font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user