Skip to content

Commit

Permalink
Fixes issue hallvard#42
Browse files Browse the repository at this point in the history
  • Loading branch information
Aresius423 committed Jan 11, 2018
1 parent 991bd8f commit 4143a87
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ public void fitZoom() {
*/
public void resetZoom() {
if (sourceImage != null) {
double tx = transform.getTranslateX();
double ty = transform.getTranslateY();
transform = new AffineTransform();
transform.setToTranslation(tx, ty);
syncScrollBars();
}
}
Expand Down

0 comments on commit 4143a87

Please sign in to comment.