diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-18 23:30:48 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-18 23:30:48 -0400 |
commit | cd897bf6e3df976cd7ab40c406cd02cb1411cd0d (patch) | |
tree | d6667c788725a4b2c70d6d60d601d8d77220fb8e | |
parent | 2b84ec4c130f646b5121d2a3d762e327769456a4 (diff) | |
download | pango-cd897bf6e3df976cd7ab40c406cd02cb1411cd0d.tar.gz |
Avoid a dead assignment
As pointed out in #495, we were assigning
logical_rect->y twice in a row here. Once is enough.
-rw-r--r-- | pango/fonts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index e83abbbe..1695366b 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1799,7 +1799,7 @@ pango_font_get_glyph_extents (PangoFont *font, } if (logical_rect) { - logical_rect->x = logical_rect->y = 0; + logical_rect->x = 0; logical_rect->y = - PANGO_UNKNOWN_GLYPH_HEIGHT * PANGO_SCALE; logical_rect->height = PANGO_UNKNOWN_GLYPH_HEIGHT * PANGO_SCALE; logical_rect->width = PANGO_UNKNOWN_GLYPH_WIDTH * PANGO_SCALE; |