changeset 30 | 5dc02b23752f |
parent 18 | 2f34d5167611 |
child 33 | 3e2da88830cd |
--- a/src/gui/painting/qoutlinemapper.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/src/gui/painting/qoutlinemapper.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -154,7 +154,8 @@ // ### We can kill this copying and just use the buffer straight... m_elements.resize(count); - memcpy(m_elements.data(), path.points(), count* sizeof(QPointF)); + if (count) + memcpy(m_elements.data(), path.points(), count* sizeof(QPointF)); m_element_types.resize(0); }