`PieSlice`: Use correct name case for `RenderContext::yToRelative()`

This commit is contained in:
raviks789 2023-08-15 09:50:44 +02:00
parent fb92c9b70a
commit e1fd5c8500
1 changed files with 3 additions and 3 deletions

View File

@ -164,10 +164,10 @@ class PieSlice extends Animatable implements Drawable
$midX += intval($r/2 * sin(M_PI/9)) * ($midRadius > M_PI ? -1 : 1);
$midY -= intval($r/2 * cos(M_PI/3)) * ($midRadius < M_PI*1.4 && $midRadius > M_PI/3 ? -1 : 1);
if ($ctx->ytoRelative($midY) > 100) {
if ($ctx->yToRelative($midY) > 100) {
$midY = $ctx->yToAbsolute(100);
} elseif ($ctx->ytoRelative($midY) < 0) {
$midY = $ctx->yToAbsolute($ctx->ytoRelative(100+$midY));
} elseif ($ctx->yToRelative($midY) < 0) {
$midY = $ctx->yToAbsolute($ctx->yToRelative(100+$midY));
}
$path->append(array($midX , $midY));