Permalink
Browse files

XML.cc: Optical distortion degree can be negative

  • Loading branch information...
1 parent e6561ab commit 1b041d8b9b79a1eade116dd20aeb48cd34440512 @oleg-alexandrov oleg-alexandrov committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/asp/Sessions/DG/XML.cc
@@ -98,7 +98,7 @@ void asp::GeometricXML::parse_optical_distortion( xercesc::DOMElement* node ) {
// coefficients are non-zero, then throw an error as we did not
// implement optical distortion.
- if ( optical_polyorder == 0 ) return;
+ if ( optical_polyorder <= 0 ) return; // it actually can be negative
std::string list_list_types[] = {"ALISTList", "BLISTList"};
for (unsigned ls = 0; ls < sizeof(list_list_types)/sizeof(std::string); ls++){

0 comments on commit 1b041d8

Please sign in to comment.