Skip to content

Commit

Permalink
Fixed compatibility with calls FloatMath
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Sep 23, 2013
1 parent 2e1a74a commit 2a6a34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/uk/co/senab/photoview/PhotoViewAttacher.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public float getMaxScale() {

@Override
public final float getScale() {
return FloatMath.sqrt(FloatMath.pow(getValue(mSuppMatrix, Matrix.MSCALE_X), 2) + FloatMath.pow(getValue(mSuppMatrix, Matrix.MSKEW_Y), 2));
return FloatMath.sqrt((float) Math.pow(getValue(mSuppMatrix, Matrix.MSCALE_X), 2) + (float) Math.pow(getValue(mSuppMatrix, Matrix.MSKEW_Y), 2));
}

@Override
Expand Down

0 comments on commit 2a6a34a

Please sign in to comment.