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.
This commit is contained in:
Chun-wei Fan
2023-10-04 14:33:09 +08:00
parent 7cc1283a26
commit b63bd1ff08

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);