1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Prevents keyboard navigation from freezing when the Snap To checkbox

has the focus on GTK.
This commit is contained in:
lllucius 2013-10-08 19:38:43 +00:00
parent c8d8890211
commit 4476bf26e6

View File

@ -232,7 +232,12 @@ void SelectionBar::Populate()
* because the boundaries 'snap to' the nearest whole number.*/
mSnapTo = new wxCheckBox(this, OnSnapToID, _("Snap To"),
wxDefaultPosition, wxDefaultSize,
#if defined(__WXGTK__)
// See bug #356 for explanation
wxALIGN_LEFT);
#else
wxALIGN_RIGHT);
#endif
mainSizer->Add(mSnapTo,
0, wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER | wxRIGHT, 5);
mSnapTo->SetName(_("Snap To"));