[gtk/wip/matthiasc/lottie-stroke: 50/51] Fix parsing of conics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 50/51] Fix parsing of conics
- Date: Tue, 1 Dec 2020 17:28:02 +0000 (UTC)
commit a54dbf5eda987c3b0bcbce01247a32b6582f5b71
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 1 12:26:03 2020 -0500
Fix parsing of conics
We print them out as O x1 y1, w, x2 y2, but
the parser was expecting O x1 y1, x2, y2, w.
Fix that.
gsk/gskpath.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskpath.c b/gsk/gskpath.c
index c5f5101a6a..624c339113 100644
--- a/gsk/gskpath.c
+++ b/gsk/gskpath.c
@@ -1082,8 +1082,8 @@ gsk_path_parse (const char *string)
double x1, y1, x2, y2, weight;
if (parse_coordinate_pair (&p, &x1, &y1) &&
- parse_coordinate_pair (&p, &x2, &y2) &&
- parse_nonnegative_number (&p, &weight))
+ parse_nonnegative_number (&p, &weight) &&
+ parse_coordinate_pair (&p, &x2, &y2))
{
if (cmd == 'c')
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]