mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-22 00:47:13 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user