1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Fix an assertion in Nyquist Workbench

This commit is contained in:
Leland Lucius 2015-08-27 09:41:48 -05:00
parent e15236efdc
commit 1771cd15fb

View File

@ -326,7 +326,7 @@ void NyqTextCtrl::OnUpdate(wxUpdateUIEvent & e)
int lpos = wxMax(0, pos - 1);
wxString text = GetRange(lpos, pos);
if (text.Length() > 0) {
if (text[0] == wxT('(')) {
wxLongToLongHashMap::const_iterator left = mLeftParens.find(lpos);
if (left != mLeftParens.end()) {
@ -339,6 +339,7 @@ void NyqTextCtrl::OnUpdate(wxUpdateUIEvent & e)
Colorize(right->second, lpos);
}
}
}
mLastCaretPos = pos;
}