diff --git a/src/avtk/clipselector.cxx b/src/avtk/clipselector.cxx index 568ebaa..82e0e21 100644 --- a/src/avtk/clipselector.cxx +++ b/src/avtk/clipselector.cxx @@ -238,7 +238,10 @@ void setRecordBarsCb(Fl_Widget *w, void* data) long bars = (long)data; if(bars == -2){ const char* answer = fl_input("Enter a custom number: "); - bars = atoi(answer); + if(!answer) + bars = -1; + else + bars = atoi(answer); } EventLooperBarsToRecord e(track->ID, track->getLastClipNum(), bars);