Skip to content

Commit

Permalink
refactor: positioning of mixed_checker addressing duplicateExpression…
Browse files Browse the repository at this point in the history
… warning
  • Loading branch information
Sharansrj567 committed Jan 17, 2024
1 parent 18b54a9 commit c19ead5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions display/d.barscale/draw_scale.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ int draw_scale(double east, double north, int length, int seg, int units,
xarr[1] = seg_len;
yarr[1] = 0;
xarr[2] = 0;
yarr[2] = (i % 2 ? -ysize_checker : ysize_checker);
yarr[2] = +ysize_checker;
xarr[3] = -seg_len;
yarr[3] = 0;
xarr[4] = 0;
Expand Down Expand Up @@ -453,7 +453,7 @@ int draw_scale(double east, double north, int length, int seg, int units,
xarr[1] = seg_len;
yarr[1] = 0;
xarr[2] = 0;
yarr[2] = (i % 2 ? ysize_checker : +ysize_checker);
yarr[2] = (i % 2 ? -ysize_checker : ysize_checker);
xarr[3] = -seg_len;
yarr[3] = 0;
xarr[4] = 0;
Expand Down

0 comments on commit c19ead5

Please sign in to comment.