Revision 2175

tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEnginesManager.java (revision 2175)
114 114
	public ChartsEngine getChartsEngine(String outputFormat)	{
115 115
		ChartsEngine chartsEngine = null;
116 116
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
117
			if(ChartsEngine.chartsEngines.get(i).getSupportedOutputDisplayFormats().contains(outputFormat) || ChartsEngine.chartsEngines.get(i).getSupportedOutputFileFormats().contains(outputFormat))	{
118
				chartsEngine = ChartsEngine.chartsEngines.get(i);
117
			ChartsEngine ce = ChartsEngine.chartsEngines.get(i);
118
			if (ce == null) continue;
119
			
120
			ArrayList<String> formats = ce.getSupportedOutputDisplayFormats();
121
			if(formats != null && formats.contains(outputFormat) || formats.contains(outputFormat))	{
122
				chartsEngine = ce;
119 123
				break;
120 124
			}
121 125
		}

Also available in: Unified diff