diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index 4f93da3..0685fb2 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -545,7 +545,7 @@ private void invalidateForegroundStrokeCapAngle() { switch (strokeCap) { case SQUARE: case ROUND: { - float r = Math.min(mDrawRect.width(), mDrawRect.height()) / 2f; + float r = mDrawRect.width() / 2f; if (r != 0) { mForegroundStrokeCapAngle = 90f * mForegroundStrokePaint.getStrokeWidth() / (float) Math.PI / r; } else {