minor code review

This commit is contained in:
gorhill 2015-07-24 20:14:53 -04:00
parent 6acb2e561e
commit eeb48844c2

View file

@ -444,10 +444,7 @@ Matrix.prototype.mustAbort = function() {
/******************************************************************************/ /******************************************************************************/
Matrix.prototype.toFilterString = function() { Matrix.prototype.toFilterString = function() {
if ( this.r === 0 ) { if ( this.r === 0 || this.type === '' ) {
return '';
}
if ( this.type === '' ) {
return ''; return '';
} }
var body = this.z + ' ' + this.y + ' ' + this.type; var body = this.z + ' ' + this.y + ' ' + this.type;