Skip to content

Commit

Permalink
Merge pull request #2158 from ControlSystemStudio/CSSTUDIO-1600
Browse files Browse the repository at this point in the history
Bug fix for commit #2155
  • Loading branch information
georgweiss authored Mar 6, 2022
2 parents 23575d4 + b0bc62e commit 7075906
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,13 @@ public void paint(final Graphics2D gc, final Font font,
if (bounds.height <= 0)
return;

// Need to compute grid since labels may have changed in case unit string was added when PV connects.
computeGrid(gc, traces);

final Color orig_color = gc.getColor();
final Font orig_font = gc.getFont();
gc.setFont(font);

// Need to compute grid since labels may have changed in case unit string was added when PV connects.
computeGrid(gc, traces);

super.paint(gc);

int x = bounds.x, y = bounds.y + base_offset;
Expand Down

0 comments on commit 7075906

Please sign in to comment.