Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
Fix custom format saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Jan 6, 2012
1 parent 42d9732 commit a2d7efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/Metadata.bones
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ view.prototype.save = function() {
if (attr.center) attr.center = _(attr.center.split(',')).map(parseFloat);
if (attr.zooms) attr.minzoom = attr.zooms[0];
if (attr.zooms) attr.maxzoom = attr.zooms[1];
if (attr.format) attr.format = attr.format || attr.format_custom;
if (attr.format || attr.format_custom) attr.format = attr.format || attr.format_custom;
if (attr.height) attr.height = parseInt(attr.height,10);
if (attr.width) attr.width = parseInt(attr.width,10);
delete attr.zooms;
Expand Down

0 comments on commit a2d7efb

Please sign in to comment.