summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index 353fa2a4..2247d034 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -166,6 +166,9 @@ pango_glyph_string_extents_range (PangoGlyphString *glyphs,
*/
g_return_if_fail (start <= end);
+ if (G_UNLIKELY (!ink_rect && !logical_rect))
+ return;
+
if (ink_rect)
{
ink_rect->x = 0;