CC-2301 : not drawing fades of length zero.

This commit is contained in:
Naomi 2013-04-26 17:54:37 -04:00
parent 0169c01724
commit ef100f89f1
1 changed files with 20 additions and 16 deletions

View File

@ -395,6 +395,10 @@ WaveformDrawer.prototype.drawFade = function(id, type, shape, start, end) {
ctx, ctx,
tmpCtx; tmpCtx;
if ((end - start) === 0) {
return;
}
width = ~~(end - start + 1); width = ~~(end - start + 1);
left = start; left = start;