diff options
Diffstat (limited to 'src/layout/frame.rs')
| -rw-r--r-- | src/layout/frame.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs index 82ac71a9..6d5cc2f3 100644 --- a/src/layout/frame.rs +++ b/src/layout/frame.rs @@ -146,9 +146,8 @@ impl Text { pub fn encode_glyphs_be(&self) -> Vec<u8> { let mut bytes = Vec::with_capacity(2 * self.glyphs.len()); for glyph in &self.glyphs { - let id = glyph.id; - bytes.push((id >> 8) as u8); - bytes.push((id & 0xff) as u8); + bytes.push((glyph.id >> 8) as u8); + bytes.push((glyph.id & 0xff) as u8); } bytes } |
