1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-18 17:47:41 +02:00

Avoid unnecessary update before drawing ruler grid...

... which matters for some displays such as in Equalization, though not for
track vertical rulers
This commit is contained in:
Paul Licameli 2020-01-22 13:18:24 -05:00
parent b0154f89e0
commit edba1b5b28

View File

@ -1403,7 +1403,8 @@ void Ruler::DrawGrid(wxDC& dc, int length, bool minor, bool major, int xOffset,
mMajorGrid = major;
mMinorGrid = minor;
Update( dc, nullptr );
if ( !mValid )
Update( dc, nullptr );
int gridPos;
wxPen gridPen;