Compare commits

...

1 Commits

Author SHA1 Message Date
Chun-wei Fan
b63bd1ff08 gsk/gskcurve.c: Avoid returning value in void-retype function
This is considered a compiler error with later GLib releases with Visual Studio
builds, so avoid that.
2023-10-04 15:07:57 +08:00

View File

@@ -1781,10 +1781,15 @@ gsk_conic_curve_segment (const GskCurve *curve,
graphene_point_t ctrl_num, ctrl_denom;
float mid;
if (start <= 0.0f)
return gsk_conic_curve_split (curve, end, segment, NULL);
else if (end >= 1.0f)
return gsk_conic_curve_split (curve, start, NULL, segment);
if (start <= 0.0f || end >= 1.0f)
{
if (start <= 0.0f)
gsk_conic_curve_split (curve, end, segment, NULL);
else if (end >= 1.0f)
gsk_conic_curve_split (curve, start, NULL, segment);
return;
}
gsk_conic_curve_ensure_coefficents (self);