projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0342034
)
Add comment
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 3 Nov 2010 19:47:12 +0000
(15:47 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 3 Nov 2010 20:10:12 +0000
(16:10 -0400)
src/hb-ot-layout-common-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-common-private.hh
b/src/hb-ot-layout-common-private.hh
index
2855425
..
9ff5ca9
100644
(file)
--- a/
src/hb-ot-layout-common-private.hh
+++ b/
src/hb-ot-layout-common-private.hh
@@
-78,6
+78,9
@@
template <typename Type>
struct RecordArrayOf : SortedArrayOf<Record<Type> > {
inline const Tag& get_tag (unsigned int i) const
{
+ /* We cheat slightly and don't define separate Null objects
+ * for Record types. Instead, we return the correct Null(Tag)
+ * here. */
if (unlikely (i >= this->len)) return Null(Tag);
return (*this)[i].tag;
}