Skip to content

Commit

Permalink
Merge pull request #270 from ProgrammingLife2017/resetOnLoad
Browse files Browse the repository at this point in the history
ZoomLevel and xdifference are reset when loading new graph
  • Loading branch information
LBoleij authored Jun 29, 2017
2 parents bed2d03 + 0b9268c commit 741e72c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/gui/GraphDrawer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,9 @@ void setMenuController(MenuController menuController) {
}

public void reset() {
zoomLevel = 0;
setxDifference(0);
setyDifference(0);
setAllAnnotations(new HashMap<>());
setSelected(null);
this.annotationCoordinates = null;
Expand Down

0 comments on commit 741e72c

Please sign in to comment.