[gtk/matthiasc/for-master] gsk: Fix a typo



commit d83df5a928ac8710e0e159bc8b07a72ee6a1e26b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 9 19:40:06 2020 -0400

    gsk: Fix a typo
    
    We were checking x_offset twice, when we meant to check
    x_offset and y_offset. Pointed out by RafaƂ Mikrut.
    
    Fixes: #2726

 gsk/gskrendernodeparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index fcacb8b888..822eb5c405 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -2265,7 +2265,7 @@ render_node_print (Printer       *p,
                     if (glyphs[i].glyph == ascii->glyphs[j].glyph &&
                         glyphs[i].geometry.width == ascii->glyphs[j].geometry.width &&
                         glyphs[i].geometry.x_offset == 0 &&
-                        glyphs[i].geometry.x_offset == 0 &&
+                        glyphs[i].geometry.y_offset == 0 &&
                         glyphs[i].attr.is_cluster_start)
                       {
                         g_string_append_c (str, j + MIN_ASCII_GLYPH);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]