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:
parent
b0154f89e0
commit
edba1b5b28
@ -1403,7 +1403,8 @@ void Ruler::DrawGrid(wxDC& dc, int length, bool minor, bool major, int xOffset,
|
|||||||
mMajorGrid = major;
|
mMajorGrid = major;
|
||||||
mMinorGrid = minor;
|
mMinorGrid = minor;
|
||||||
|
|
||||||
Update( dc, nullptr );
|
if ( !mValid )
|
||||||
|
Update( dc, nullptr );
|
||||||
|
|
||||||
int gridPos;
|
int gridPos;
|
||||||
wxPen gridPen;
|
wxPen gridPen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user