prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / cinelerra / resourcepixmap.C
index 4cfea84328104e1c177e01495e05909e1c435cf2..679aa6f825d44e92f71008ac9b0e41c9f679e7e3 100644 (file)
@@ -28,7 +28,7 @@
 #include "bcsignals.h"
 #include "cache.h"
 #include "clip.h"
-#include "colormodels.h"
+#include "bccmodels.h"
 #include "datatype.h"
 #include "edit.h"
 #include "edits.h"
@@ -851,8 +851,8 @@ void ResourcePixmap::draw_video_resource(TrackCanvas *canvas,
        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();