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:
dac70f2
)
tweaked get_fd fix
author
Michiharu Ariza
<ariza@adobe.com>
Thu, 27 Sep 2018 01:51:36 +0000
(18:51 -0700)
committer
Michiharu Ariza
<ariza@adobe.com>
Thu, 27 Sep 2018 01:51:36 +0000
(18:51 -0700)
src/hb-ot-cff-common.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-cff-common.hh
b/src/hb-ot-cff-common.hh
index
b036ae5
..
32c83b0
100644
(file)
--- a/
src/hb-ot-cff-common.hh
+++ b/
src/hb-ot-cff-common.hh
@@
-572,11
+572,12
@@
struct FDSelect3_4 {
inline hb_codepoint_t get_fd (hb_codepoint_t glyph) const
{
- for (unsigned int i = 1; i < nRanges; i++)
+ unsigned int i;
+ for (i = 1; i < nRanges; i++)
if (glyph < ranges[i].first)
-
return (hb_codepoint_t)ranges[i - 1].fd
;
+
break
;
- return (hb_codepoint_t)ranges[
nRanges
- 1].fd;
+ return (hb_codepoint_t)ranges[
i
- 1].fd;
}
inline GID_TYPE &sentinel (void) { return StructAfter<GID_TYPE> (ranges[nRanges - 1]); }