Permalink
Browse files

overlay-view.js: fixed alignment logic for small number of tie points

  • Loading branch information...
1 parent cc27972 commit 3e1d18de6a158b3e9e7697ac0acdc107624be991 @trey0 trey0 committed Oct 5, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 geocamTiePoint/static/geocamTiePoint/js/overlay-view.js
@@ -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];

0 comments on commit 3e1d18d

Please sign in to comment.