Revision 8622

View differences:

trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/NetworkExtension.java
148 148
		{
149 149
				if(controlPanel == null)
150 150
				{
151
					GvFlag[] flags = net.getFlags();
151
				
152 152
					controlPanel = new RouteControlPanel(net);
153 153
				}
154 154
		}
......
405 405
			MapContext mapa = model.getMapContext();
406 406
			FLayer[] activeLayers = mapa.getLayers().getActives();
407 407
			if (activeLayers.length > 0)
408
				if (activeLayers[0] instanceof FLyrVect)
409
					return true;
408
				if (activeLayers[0] instanceof FLyrVect){
409
					FLyrVect lyrVect = (FLyrVect) activeLayers[0];
410
					int shapeType ;
411
					try {
412
						shapeType = lyrVect.getShapeType();
413
						if (shapeType == FShape.LINE)
414
							return true;
415
					} catch (DriverException e) {
416
						// TODO Auto-generated catch block
417
						e.printStackTrace();
418
					}
419
				}	
410 420
		}
411 421
		return false;
412 422

  

Also available in: Unified diff