[pango/minor-fix] Avoid a dead assignment
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/minor-fix] Avoid a dead assignment
- Date: Wed, 19 Aug 2020 03:31:55 +0000 (UTC)
commit cd897bf6e3df976cd7ab40c406cd02cb1411cd0d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Aug 18 23:30:48 2020 -0400
Avoid a dead assignment
As pointed out in #495, we were assigning
logical_rect->y twice in a row here. Once is enough.
pango/fonts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]