diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-15 10:47:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:08:45 +0200 |
commit | bf24374a912be5c700b0a3e63d4bd19cf74bebaa (patch) | |
tree | 777b758669d517aa347921a6074541a359bca717 /chart2 | |
parent | 69fa8cfb2dbc5395c66a96b5c66efea303f00112 (diff) |
don't even try to create a shape for non existing values
Change-Id: I0af9285c2fa0371607e9ec750bb07968244c44d8
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index d199b5033cb3..f7459277323f 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -625,6 +625,9 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer } float nVal = rDataSeries.getYValue(nIndex); + if (rtl::math::isNan(nVal)) + continue; + float nXPos = nIndex * (BAR_SIZE_X + BAR_DISTANCE_X) + BAR_DISTANCE_X; glm::mat4 aScaleMatrix = glm::scale(glm::vec3(BAR_SIZE_X, BAR_SIZE_Y, float(nVal/nMaxVal))); |