13
0

OSC: Check for no markers yet (crash fix)

This commit is contained in:
Len Ovens 2017-12-29 14:46:18 -08:00
parent 9105a64faa
commit 6536126ad2

View File

@ -430,6 +430,10 @@ OSCGlobalObserver::marks_changed ()
void
OSCGlobalObserver::mark_update ()
{
if (!lm.size()) {
_osc.text_message (X_("/marker"), "No Marks", addr);
return;
}
uint32_t prev = 0;
uint32_t next = lm.size() - 1;
for (uint32_t i = 0; i < lm.size (); i++) {