X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.0%2Fcinelerra%2Fresourcepixmap.C;h=a8c0f8a758f59d8a43683484413d435b20b9d07f;hb=425f9eab2f37d52e16e7ebdcd4b78f6de7ed68e7;hp=4cfea84328104e1c177e01495e05909e1c435cf2;hpb=73e5d54a5068f6a355158691a9c8849103f89564;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/resourcepixmap.C b/cinelerra-5.0/cinelerra/resourcepixmap.C index 4cfea843..a8c0f8a7 100644 --- a/cinelerra-5.0/cinelerra/resourcepixmap.C +++ b/cinelerra-5.0/cinelerra/resourcepixmap.C @@ -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();