Skip to content

Commit

Permalink
overlay-view.js: fixed alignment logic for small number of tie points
Browse files Browse the repository at this point in the history
  • Loading branch information
trey0 committed Oct 5, 2012
1 parent cc27972 commit 3e1d18d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions geocamTiePoint/static/geocamTiePoint/js/overlay-view.js
Expand Up @@ -294,15 +294,12 @@ function save(serverState) {
var state = getState();

// solve for the transform
if (imageCoordsG.length) {
if (imageCoordsG.length >= 2) {
state.transform = (geocamTiePoint.transform
.getTransform(state.points)
.toDict());
} else {
state.transform = {
'type': '',
'matrix': []
};
state.transform = null;
}

var saveButton = $('#save_button')[0];
Expand Down

0 comments on commit 3e1d18d

Please sign in to comment.