From eb3ada6386092ef75e6114afdb60fdbc04c106e4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Aug 2023 07:59:52 -0400 Subject: [PATCH] Fix path point preconditions These were inverted and did not work. Oops. --- gsk/gskpathpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsk/gskpathpoint.c b/gsk/gskpathpoint.c index adc72bf2ee..1fa59332ea 100644 --- a/gsk/gskpathpoint.c +++ b/gsk/gskpathpoint.c @@ -84,7 +84,7 @@ gsk_path_point_get_position (GskPath *path, const GskContour *contour = gsk_path_get_contour (path, self->contour); g_return_if_fail (path == self->path); - g_return_if_fail (contour == NULL); + g_return_if_fail (contour != NULL); gsk_contour_get_position (contour, self, position); } @@ -117,7 +117,7 @@ gsk_path_point_get_tangent (GskPath *path, const GskContour *contour = gsk_path_get_contour (path, self->contour); g_return_if_fail (path == self->path); - g_return_if_fail (contour == NULL); + g_return_if_fail (contour != NULL); gsk_contour_get_tangent (contour, self, direction, tangent); } @@ -149,7 +149,7 @@ gsk_path_point_get_curvature (GskPath *path, const GskContour *contour = gsk_path_get_contour (path, self->contour); g_return_val_if_fail (path == self->path, 0); - g_return_val_if_fail (contour == NULL, 0); + g_return_val_if_fail (contour != NULL, 0); return gsk_contour_get_curvature (contour, self, center); }