Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/painting/qprintengine_win.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    369369
    370370    // 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;
    372373    for (int i=0;  i < ti.num_chars; ++i) {
    373374        if (ti.chars[i].unicode() >= 0x80) {
     
    851852    HPEN pen = ExtCreatePen(((penWidth == 0) ? PS_COSMETIC : PS_GEOMETRIC)
    852853                            | PS_SOLID | capStyle | joinStyle,
    853                             penWidth, &brush, 0, 0);
     854                            (penWidth == 0) ? 1 : penWidth, &brush, 0, 0);
    854855
    855856    HGDIOBJ old_pen = SelectObject(hdc, pen);
     
    12421243        break;
    12431244
     1245    case PPK_CopyCount: // fallthrough
    12441246    case PPK_NumberOfCopies:
    12451247        if (!d->devMode)
     
    14081410        break;
    14091411
     1412    case PPK_CopyCount:
     1413        value = d->num_copies;
     1414        break;
     1415
     1416    case PPK_SupportsMultipleCopies:
     1417        value = true;
     1418        break;
     1419
    14101420    case PPK_NumberOfCopies:
    14111421        value = 1;
Note: See TracChangeset for help on using the changeset viewer.