Kaydet (Commit) 217cb86d authored tarafından Markus Mohrhard's avatar Markus Mohrhard

tdf#120015, don't crash without major tick marks

Change-Id: Icac79eb1c0c47388f96d37d2921c81fb6c848607
Reviewed-on: https://gerrit.libreoffice.org/60948
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 0e01d84c
......@@ -57,7 +57,11 @@ private: //methods
if(m_pSimpleTicks)
return (*m_pSimpleTicks)[nDepth][nIndex];
else
{
if ((*m_pInfoTicks)[nDepth].size() <= size_t(nIndex))
return std::numeric_limits<double>::max();
return (((*m_pInfoTicks)[nDepth])[nIndex]).fScaledTickValue;
}
}
sal_Int32 getTickCount( sal_Int32 nDepth ) const
{
......
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