Hi all.

During some tests with the TYP file compiler I stumbled over the issue that the 
used TYPWiz2 writes the text TYP files in a case as it likes.  Converting a TYP 
file into txt usually uses upper-case, while editing it later converts most 
statements to lower-case.

If mkgmap reads the first one without warnings, it complained about LineWidth 
in lower-case later.  For consistency I have made it case-insensitive also like 
the other statements.

The patch is against SVN Revision 2281.

  Regards,
    Michael

,-----
Accept case-insensitive LineWidth in accordance to other TYP file statements.

Author: Michael Guennewig <[email protected]>
`-----

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
--- old/mkgmap-r2281/src/uk/me/parabola/mkgmap/typ/LineSection.java	2011-12-01 14:05:42.000000000 +0100
+++ new/mkgmap-r2281/src/uk/me/parabola/mkgmap/typ/LineSection.java	2012-06-02 12:08:54.359559890 +0200
@@ -39,7 +39,7 @@
 
 		if (name.equalsIgnoreCase("UseOrientation")) {
 			current.setUseOrientation(value.charAt(0) == 'Y');
-		} else if (name.equals("LineWidth")) {
+		} else if (name.equalsIgnoreCase("LineWidth")) {
 			try {
 				int ival = Integer.decode(value);
 				current.setLineWidth(ival);
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to