Changeset 846 for trunk/src/gui/painting/qoutlinemapper.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qoutlinemapper.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 155 155 156 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 160 m_element_types.resize(0); … … 234 235 235 236 // Check for out of dev bounds... 236 const bool do_clip = (controlPointRect.left() < -QT_RASTER_COORD_LIMIT237 const bool do_clip = !m_in_clip_elements && ((controlPointRect.left() < -QT_RASTER_COORD_LIMIT 237 238 || controlPointRect.right() > QT_RASTER_COORD_LIMIT 238 239 || controlPointRect.top() < -QT_RASTER_COORD_LIMIT 239 240 || controlPointRect.bottom() > QT_RASTER_COORD_LIMIT 240 241 || controlPointRect.width() > QT_RASTER_COORD_LIMIT 241 || controlPointRect.height() > QT_RASTER_COORD_LIMIT) ;242 || controlPointRect.height() > QT_RASTER_COORD_LIMIT)); 242 243 243 244 if (do_clip) { … … 353 354 // this part of code hardly every used, it shouldn't matter. 354 355 356 m_in_clip_elements = true; 357 355 358 QPainterPath path; 359 360 if (!(m_outline.flags & QT_FT_OUTLINE_EVEN_ODD_FILL)) 361 path.setFillRule(Qt::WindingFill); 362 356 363 if (types) { 357 364 for (int i=0; i<element_count; ++i) { … … 389 396 convertPath(clippedPath); 390 397 m_txop = old_txop; 398 399 m_in_clip_elements = false; 391 400 } 392 401
Note:
See TracChangeset
for help on using the changeset viewer.