fixed empty crop bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-28 19:09:33 +03:00
parent 5a50cd04d4
commit 73cacded7e

View File

@ -705,6 +705,11 @@ var DataPrototype = {
this.makeSparseImages(list) this.makeSparseImages(list)
: this.ribbons[this.getRibbon(list)] : this.ribbons[this.getRibbon(list)]
// special case: nothing to chose from...
if(list == null || list.length == 0){
return null
}
// order -> gid special case... // order -> gid special case...
var i var i
if(typeof(target) == typeof(123)){ if(typeof(target) == typeof(123)){