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 c6ec982 commit 9114711
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -545,7 +545,7 @@ private void invalidateForegroundStrokeCapAngle() {
switch (strokeCap) {
case SQUARE:
case ROUND: {
float r = mDrawRect.centerX();
float r = Math.min(mDrawRect.width(), mDrawRect.height()) / 2f;
if (r != 0) {
mForegroundStrokeCapAngle = 90f * mForegroundStrokePaint.getStrokeWidth() / (float) Math.PI / r;
} else {

0 comments on commit 9114711

Please sign in to comment.