summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/pango-matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-matrix.c b/pango/pango-matrix.c
index 78aacae6..3f263101 100644
--- a/pango/pango-matrix.c
+++ b/pango/pango-matrix.c
@@ -269,7 +269,7 @@ pango_matrix_get_rotation (const PangoMatrix *matrix)
pango_matrix_transform_distance (matrix, &x, &y);
- return RAD_TO_DEG (acos (x / sqrtf (x*x + y*y)));
+ return RAD_TO_DEG (acos (CLAMP (x / sqrtf (x*x + y*y), -1., 1.)));
}
/**