diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-20 12:49:15 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-20 12:50:46 (GMT) |
commit | 6ecb1be99ff951f35d7b391d6ffb033da696ca74 (patch) | |
tree | b632c2ef453c09b9ac05afd3019f33629da5083d /src/gui | |
parent | 5220c371176951e12d525ac7908861d111c367d0 (diff) | |
download | Qt-6ecb1be99ff951f35d7b391d6ffb033da696ca74.zip Qt-6ecb1be99ff951f35d7b391d6ffb033da696ca74.tar.gz Qt-6ecb1be99ff951f35d7b391d6ffb033da696ca74.tar.bz2 |
Fixed color of cosmetic pens when printing under Windows.
When the PS_COSMETIC style is used, the pen width has to be 1.
Task-number: QTBUG-13065
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qprintengine_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprintengine_win.cpp b/src/gui/painting/qprintengine_win.cpp index dd4de99..afae0a5 100644 --- a/src/gui/painting/qprintengine_win.cpp +++ b/src/gui/painting/qprintengine_win.cpp @@ -851,7 +851,7 @@ void QWin32PrintEnginePrivate::strokePath_dev(const QPainterPath &path, const QC HPEN pen = ExtCreatePen(((penWidth == 0) ? PS_COSMETIC : PS_GEOMETRIC) | PS_SOLID | capStyle | joinStyle, - penWidth, &brush, 0, 0); + (penWidth == 0) ? 1 : penWidth, &brush, 0, 0); HGDIOBJ old_pen = SelectObject(hdc, pen); StrokePath(hdc); |