diff options
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index d732a683d0e6..47c137b32ab4 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -642,6 +642,8 @@ void BarChart::createShapes() //collect data point information (logic coordinates, style ): double fUnscaledLogicX = pSeries->getXValue( nPointIndex ); fUnscaledLogicX = DateHelper::RasterizeDateValue( fUnscaledLogicX, m_aNullDate, m_nTimeResolution ); + if(rtl::math::isNan(fUnscaledLogicX)) + continue;//point not visible if(fUnscaledLogicX<pPosHelper->getLogicMinX()) continue;//point not visible if(fUnscaledLogicX>pPosHelper->getLogicMaxX()) |