#include "bcsignals.h"
#include "cache.h"
#include "clip.h"
-#include "colormodels.h"
+#include "bccmodels.h"
#include "datatype.h"
#include "edit.h"
#include "edits.h"
int64_t picon_h = edit->picon_h();
-// Don't draw video if picon is bigger than edit
- if(picon_w > edit_w) return;
+// Don't draw video if picon is empty or bigger than edit
+ if( picon_w <= 0 || picon_w > edit_w ) return;
// pixels spanned by a frame
double frame_w = edit->frame_w();