user exceptions fixed
This commit is contained in:
parent
5ac1f7405a
commit
ff52c09006
@ -335,13 +335,15 @@ public class CalculatorPlotFragment extends CalculatorFragment implements Calcul
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (PlotUtils.addXY(dr.getXAxisMin(), dr.getXAxisMax(), expression, variable, realSeries, imagSeries, true, PlotUtils.DEFAULT_NUMBER_OF_STEPS)) {
|
if (dr != null) {
|
||||||
if (chart.getDataset().getSeriesCount() <= 1) {
|
if (PlotUtils.addXY(dr.getXAxisMin(), dr.getXAxisMax(), expression, variable, realSeries, imagSeries, true, PlotUtils.DEFAULT_NUMBER_OF_STEPS)) {
|
||||||
chart.getDataset().addSeries(imagSeries);
|
if (chart.getDataset().getSeriesCount() <= 1) {
|
||||||
chart.getRenderer().addSeriesRenderer(PlotUtils.createImagRenderer(imagLineColor.getColor()));
|
chart.getDataset().addSeries(imagSeries);
|
||||||
}
|
chart.getRenderer().addSeriesRenderer(PlotUtils.createImagRenderer(imagLineColor.getColor()));
|
||||||
}
|
}
|
||||||
} catch (ArithmeticException e) {
|
}
|
||||||
|
}
|
||||||
|
} catch (ArithmeticException e) {
|
||||||
PlotUtils.handleArithmeticException(e, CalculatorPlotFragment.this);
|
PlotUtils.handleArithmeticException(e, CalculatorPlotFragment.this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user