projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1c8c9
)
Return early if mask is 0
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 13 Oct 2010 19:38:52 +0000
(15:38 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 13 Oct 2010 19:38:52 +0000
(15:38 -0400)
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
d6e38e9
..
36a5e13
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-478,6
+478,9
@@
_hb_buffer_add_masks (hb_buffer_t *buffer,
hb_mask_t not_mask = ~mask;
value &= mask;
+ if (!mask)
+ return;
+
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
unsigned int count = buffer->len;
for (unsigned int i = 0; i < count; i++)