Unverified Commit 7075906a authored by Georg Weiss's avatar Georg Weiss Committed by GitHub
Browse files

Merge pull request #2158 from ControlSystemStudio/CSSTUDIO-1600

Bug fix for commit #2155
parents 23575d47 b0bc62eb
Pipeline #108061 passed with stage
in 11 minutes and 40 seconds
......@@ -112,12 +112,13 @@ public class LegendPart<XTYPE extends Comparable<XTYPE>> extends PlotPart
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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment