equal
deleted
inserted
replaced
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(); |