src/gui/painting/qoutlinemapper.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   152 
   152 
   153     } else {
   153     } else {
   154         // ### We can kill this copying and just use the buffer straight...
   154         // ### We can kill this copying and just use the buffer straight...
   155 
   155 
   156         m_elements.resize(count);
   156         m_elements.resize(count);
   157         memcpy(m_elements.data(), path.points(), count* sizeof(QPointF));
   157         if (count)
       
   158             memcpy(m_elements.data(), path.points(), count* sizeof(QPointF));
   158 
   159 
   159         m_element_types.resize(0);
   160         m_element_types.resize(0);
   160     }
   161     }
   161 
   162 
   162     endOutline();
   163     endOutline();