X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fresourcepixmap.C;h=679aa6f825d44e92f71008ac9b0e41c9f679e7e3;hb=6c0c8bd0e577001d1cc18c6c27d58e62f58a6bff;hp=4cfea84328104e1c177e01495e05909e1c435cf2;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/resourcepixmap.C b/cinelerra-5.0/cinelerra/resourcepixmap.C index 4cfea843..679aa6f8 100644 --- a/cinelerra-5.0/cinelerra/resourcepixmap.C +++ b/cinelerra-5.0/cinelerra/resourcepixmap.C @@ -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();