return; // no plot, no data
}
if (plot instanceof ValueAxisPlot)
{
ValueAxisPlot vap = (ValueAxisPlot) plot;
//Original code, don't work, do not take getDefaultAutoRange() when zooming out
/*Range r = vap.getDataRange(this);
if (r == null)
{
r = getDefaultAutoRange();
}*/
//-- beg added Amadeus in order to fix a bug with zoom out axis
Range r = vap.getDataRange(this);
if (r == null || this._blnIsManualRange_)
{
r = getDefaultAutoRange();
}
//-- end added Amadeus in order to fix a bug with zoom out axis