projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent popup deactivation while button_down
[goodguy/history.git]
/
cinelerra-5.0
/
cinelerra
/
resourcepixmap.C
diff --git
a/cinelerra-5.0/cinelerra/resourcepixmap.C
b/cinelerra-5.0/cinelerra/resourcepixmap.C
index 4cfea84328104e1c177e01495e05909e1c435cf2..679aa6f825d44e92f71008ac9b0e41c9f679e7e3 100644
(file)
--- 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 "bcsignals.h"
#include "cache.h"
#include "clip.h"
-#include "
color
models.h"
+#include "
bcc
models.h"
#include "datatype.h"
#include "edit.h"
#include "edits.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();
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();
// pixels spanned by a frame
double frame_w = edit->frame_w();