From fd4ac1676a9e082e3169d947361227cb298f1a83 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Mon, 26 Mar 2018 19:58:10 +0200 Subject: [PATCH] fix cancel --- src/avtk/clipselector.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);