From e37fc96f4d8c2585b2a320ac341e4a86c41ca6bd Mon Sep 17 00:00:00 2001 From: Maxime Guillaud Date: Thu, 10 Nov 2011 08:39:04 +0100 Subject: [PATCH] Proper handling of lowercase filenames by hgtchop. --- src/Lib/HGT/hgt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lib/HGT/hgt.cxx b/src/Lib/HGT/hgt.cxx index 2f5c7ada..a29c1118 100644 --- a/src/Lib/HGT/hgt.cxx +++ b/src/Lib/HGT/hgt.cxx @@ -123,11 +123,11 @@ TGHgt::open ( const SGPath &f ) { string name = file_name.file(); cout << " Name = " << name << endl; originy = atof( name.substr(1, 2).c_str() ) * 3600.0; - if ( name.substr(0, 1) == "S" ) { + if ( name.substr(0, 1) == "S" || name.substr(0, 1) == "s" ) { originy = -originy; } originx = atof( name.substr(4, 3).c_str() ) * 3600.0; - if ( name.substr(3, 1) == "W" ) { + if ( name.substr(3, 1) == "W" || name.substr(3, 1) == "w") { originx = -originx; } cout << " Origin = " << originx << ", " << originy << endl;