src/gui/painting/qoutlinemapper.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
--- 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);
     }