Révision 173

tmp/org.txm.chartsengine.jfreechart.core/src/org/txm/chartsengine/jfreechart/core/JFCChartsEngine.java (revision 173)
1453 1453

  
1454 1454

  
1455 1455
			// FIXME: to fix a bug when no rows and no cols are displayed, but we need to avoid this case directly in the CA editor tool bar
1456
//			if(((XYPlot)getChart().getPlot()).getDataRange(xAxis) == null || ((XYPlot)getChart().getPlot()).getDataRange(yAxis) == null)	{
1457
//				return;
1458
//			}
1456
			if(plot.getDataRange(xAxis) == null || plot.getDataRange(yAxis) == null)	{
1457
				return;
1458
			}
1459 1459

  
1460 1460
			double xDataRangeLength = plot.getDataRange(xAxis).getLength();
1461 1461
			double yDataRangeLength = plot.getDataRange(yAxis).getLength();

Formats disponibles : Unified diff