summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-18 23:30:48 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-18 23:30:48 -0400
commitcd897bf6e3df976cd7ab40c406cd02cb1411cd0d (patch)
treed6667c788725a4b2c70d6d60d601d8d77220fb8e
parent2b84ec4c130f646b5121d2a3d762e327769456a4 (diff)
downloadpango-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.c2
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;