Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Jan 12, 2018
1 parent 9114711 commit 13031ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 13031ae

Please sign in to comment.