Skip to content
Browse files

Fixed: #29 NaN or blank in layer input position (X, Y) breaks image.

  • Loading branch information...
1 parent b2d1924 commit 308309027f596655ada7a4990581519facfc3a13 @glan committed Apr 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/models/Length.js
View
2 js/models/Length.js
@@ -21,7 +21,7 @@ define('models/Length', ['vendor/backbone'], function (Backbone) {
this.set({'unit': u});
},
getValue : function () {
- return this.get('value');
+ return this.get('value') || null;
},
getUnit : function () {
return this.get('unit');

0 comments on commit 3083090

Please sign in to comment.
Something went wrong with that request. Please try again.