Kaydet (Commit) 05e7b1db authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#88229 Crash when you try to create a bar chart GL3D

Change-Id: I6390f8988ca287de19e9981053bdeb9473d1e3e1
üst 0442cd21
...@@ -649,8 +649,15 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer ...@@ -649,8 +649,15 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
sal_Int32 nSeriesIndex = 0; sal_Int32 nSeriesIndex = 0;
sal_Int32 nMaxPointCount = 0; sal_Int32 nMaxPointCount = 0;
double nMaxVal = findMaxValue(rDataSeriesContainer)/100; double nMaxVal = findMaxValue(rDataSeriesContainer)/100;
const VDataSeries& rFirstRow = *(rDataSeriesContainer.begin()); if (rDataSeriesContainer.empty())
mnBarsInRow = rFirstRow.getTotalPointCount(); {
mnBarsInRow = 0;
}
else
{
const VDataSeries& rFirstRow = *(rDataSeriesContainer.begin());
mnBarsInRow = rFirstRow.getTotalPointCount();
}
for (boost::ptr_vector<VDataSeries>::const_iterator itr = rDataSeriesContainer.begin(), for (boost::ptr_vector<VDataSeries>::const_iterator itr = rDataSeriesContainer.begin(),
itrEnd = rDataSeriesContainer.end(); itr != itrEnd; ++itr) itrEnd = rDataSeriesContainer.end(); itr != itrEnd; ++itr)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment