Hello Yeti,
it breaks for my files "Aspect ratio" is written with upper case "Ratio"
in the files I have. Hacked fix is easy.
But maybe the whole hash table could be case normalized to prevent
such problems.
All the best
Lennart
diff --git a/modules/file/nanoscope.c b/modules/file/nanoscope.c
index d9bb2dd..867c896 100644
--- a/modules/file/nanoscope.c
+++ b/modules/file/nanoscope.c
@@ -513,6 +513,9 @@ hash_to_data_field(GHashTable *hash,
val = g_hash_table_lookup(hash, "Aspect ratio");
nonsquare_aspect = val && !gwy_strequal(val->hard_value_str, "1:1");
+ val = g_hash_table_lookup(hash, "Aspect Ratio");
+ nonsquare_aspect = val && !gwy_strequal(val->hard_value_str, "1:1");
+
/* scan size */
val = g_hash_table_lookup(hash, "Scan size");
xreal = g_ascii_strtod(val->hard_value_str, &end);
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users