Skip to content

Commit

Permalink
CSSTUDIO-2009 Bugfix: 'offset' should be updated also when the lowest…
Browse files Browse the repository at this point in the history
… value of the scale is equal to 0.0.
  • Loading branch information
abrahamwolk committed Aug 16, 2023
1 parent f067330 commit 97d751f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ public void configure(int p1x, int p1y, double s)
this.p1x = p1x;
this.p1y = p1y;
this.scale = s;
if( Double.compare(this.range.getLow(),0.0) != 0){
this.offset = this.range.getLow();
}
this.offset = this.range.getLow();

dirty_ticks = true;
requestLayout();
Expand Down

0 comments on commit 97d751f

Please sign in to comment.