Commit bdd079e7 authored by Pierre Kraemer's avatar Pierre Kraemer

map.begin() -> bug in MR mode when called on empty map

parent df74bad6
......@@ -560,8 +560,11 @@ inline Dart GenericMap::begin() const
if (m_isMultiRes)
{
unsigned int d = m_mrattribs.begin() ;
while (getDartLevel(d) > m_mrCurrentLevel)
m_mrattribs.next(d) ;
if(d != m_mrattribs.end())
{
while (getDartLevel(d) > m_mrCurrentLevel)
m_mrattribs.next(d) ;
}
return Dart::create(d) ;
}
......
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