Changeset 846 for trunk/src/gui/painting/qprintengine_win.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/qprintengine_win.cpp
r769 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) … … 369 369 370 370 // We only want to convert the glyphs to text if the entire string is compatible with ASCII 371 bool convertToText = true; 371 // and if we actually have access to the chars. 372 bool convertToText = ti.chars != 0; 372 373 for (int i=0; i < ti.num_chars; ++i) { 373 374 if (ti.chars[i].unicode() >= 0x80) { … … 851 852 HPEN pen = ExtCreatePen(((penWidth == 0) ? PS_COSMETIC : PS_GEOMETRIC) 852 853 | PS_SOLID | capStyle | joinStyle, 853 penWidth, &brush, 0, 0);854 (penWidth == 0) ? 1 : penWidth, &brush, 0, 0); 854 855 855 856 HGDIOBJ old_pen = SelectObject(hdc, pen); … … 1242 1243 break; 1243 1244 1245 case PPK_CopyCount: // fallthrough 1244 1246 case PPK_NumberOfCopies: 1245 1247 if (!d->devMode) … … 1408 1410 break; 1409 1411 1412 case PPK_CopyCount: 1413 value = d->num_copies; 1414 break; 1415 1416 case PPK_SupportsMultipleCopies: 1417 value = true; 1418 break; 1419 1410 1420 case PPK_NumberOfCopies: 1411 1421 value = 1;
Note:
See TracChangeset
for help on using the changeset viewer.