diff -r 93b982ccede2 -r 5daf16870df6 src/gui/painting/qoutlinemapper.cpp --- a/src/gui/painting/qoutlinemapper.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/src/gui/painting/qoutlinemapper.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -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); }