Revision 30303

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/DefaultMapContextDrawer.java
56 56
		if (cachedImage == null){
57 57
			needToPaintAll=true;
58 58
		} else if (!cachedImage.isValid(mapContext, viewPort, drawList.getFirstLayerToDraw())){
59
			needToPaintAll=true;
60
		}
59
				needToPaintAll=true;
60
			}
61 61

  
62 62

  
63 63
		int firstLayer= 0;
......
321 321

  
322 322
		public DrawList(DrawList previousList){
323 323
			if (previousList != null){
324
				this.firstLayerToDraw =previousList.size();
324
				this.firstLayerToDraw =previousList.layersCount();
325 325
				this.previosList=previousList;
326 326
			}
327 327
		}
328 328

  
329
		public int layersCount() {
330
			return this.layers.size();
331
		}
332

  
329 333
		public int getLayerCount(){
330 334
			return this.layers.size();
331 335
		}
......
370 374
		}
371 375

  
372 376
		public int getFirstLayerToDraw(){
377
			if (this.firstLayerToDraw > this.layers.size()){
378
				this.firstLayerToDraw = this.layers.size();
379
			}
373 380
			return this.firstLayerToDraw;
374 381
		}
375 382

  

Also available in: Unified diff