- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
r651 r769 145 145 146 146 const qreal *endPts = pts + (count<<1); 147 const qreal *startPts ;147 const qreal *startPts = 0; 148 148 149 149 Qt::PenCapStyle cap = m_cap_style; 150 150 151 151 if (!types) { 152 // skip duplicate points 153 while((pts + 2) < endPts && pts[0] == pts[2] && pts[1] == pts[3]) 154 pts += 2; 155 if ((pts + 2) == endPts) 156 return; 157 152 158 startPts = pts; 153 159 … … 162 168 pts += 2; 163 169 while (pts < endPts) { 164 join(pts); 165 lineTo(pts); 170 if (m_cx != pts[0] || m_cy != pts[1]) { 171 join(pts); 172 lineTo(pts); 173 } 166 174 pts += 2; 167 175 } … … 170 178 171 179 } else { 172 bool endsAtStart ;180 bool endsAtStart = false; 173 181 while (pts < endPts) { 174 182 switch (*types) {
Note:
See TracChangeset
for help on using the changeset viewer.