mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Fix repaint of Mixer board after change of track name...
... Problem was introduced in 2.2.0 at commit dc05b94
Also, in MixerBoard, change name whenever changing the label, which might
matter to screen readers.
This commit is contained in:
@@ -1308,13 +1308,14 @@ auStaticText::auStaticText(wxWindow* parent, wxString textIn) :
|
||||
SetBackgroundColour( theTheme.Colour( clrMedium));
|
||||
SetForegroundColour( theTheme.Colour( clrTrackPanelText));
|
||||
SetName(textIn);
|
||||
SetLabel(textIn);
|
||||
}
|
||||
|
||||
void auStaticText::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
//dc.SetTextForeground( theTheme.Colour( clrTrackPanelText));
|
||||
dc.DrawText( GetName(), 0,0);
|
||||
dc.DrawText( GetLabel(), 0,0);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user