Hi,

Attached are two patches  to address some of the problems in the if-then branch.

- rule_index_v1.patch: This changes the index so that the example posted here 
works:
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2017q1/026311.html
I guess it will have a small impact on performance because it is likely that 
more rules are evaluated.

- if-then-reader-v1.patch
This addresses the problems posted here:
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2017q1/026290.html

The unpatched code created a new ExpressionReader for the expressions in the if 
statement
instead of using the existing one. As a result, the getUsedTags() method did 
not return all used tags.

Gerd

Attachment: rule_index_v1.patch
Description: rule_index_v1.patch

Attachment: if-then-reader-v1.patch
Description: if-then-reader-v1.patch

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to