Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp

    r651 r769  
    145145
    146146    const qreal *endPts = pts + (count<<1);
    147     const qreal *startPts;
     147    const qreal *startPts = 0;
    148148
    149149    Qt::PenCapStyle cap = m_cap_style;
    150150
    151151    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
    152158        startPts = pts;
    153159
     
    162168        pts += 2;
    163169        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            }
    166174            pts += 2;
    167175        }
     
    170178
    171179    } else {
    172         bool endsAtStart;
     180        bool endsAtStart = false;
    173181        while (pts < endPts) {
    174182            switch (*types) {
Note: See TracChangeset for help on using the changeset viewer.