logo separator

[mkgmap-dev] Question reg. LayerFilterChain.addElement

From GerdP gpetermann_muenchen at hotmail.com on Tue Feb 5 08:47:59 GMT 2013

Hi Steve,


GerdP wrote
> So I think I found an error and I will try to fix it.
> Gerd

what do you think about this simple change? It allows to replace all 
calls to LayerFilterChain.addElement() by LayerFilterChain.doFilter()
which simplifies the code and corrects the problem regarding omitted
filters.

Gerd

Index: LayerFilterChain.java
===================================================================
--- LayerFilterChain.java	(revision 2474)
+++ LayerFilterChain.java	(working copy)
@@ -55,17 +55,10 @@
 		
 		MapFilter f = filters.get(position++);
 		f.doFilter(element, this);
+		// maintain chain position for repeated calls in the split filters 
+		position--; 
 	} 




--
View this message in context: http://gis.19327.n5.nabble.com/Question-reg-LayerFilterChain-addElement-tp5748072p5748151.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list