Changeset 61472 in webkit
- Timestamp:
- Jun 19, 2010, 1:45:03 AM (15 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebframe.cpp
r61063 r61472 1273 1273 return; 1274 1274 1275 const qreal zoomFactorX = printer->logicalDpiX() / qt_defaultDpi();1276 const qreal zoomFactorY = printer->logicalDpiY() / qt_defaultDpi();1275 const qreal zoomFactorX = (qreal)printer->logicalDpiX() / qt_defaultDpi(); 1276 const qreal zoomFactorY = (qreal)printer->logicalDpiY() / qt_defaultDpi(); 1277 1277 1278 1278 PrintContext printContext(d->frame); -
trunk/WebKit/qt/ChangeLog
r61433 r61472 1 2010-06-19 Mirko Damiani <mirko@develer.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Avoid truncation of zoom factor in QWebFrame's print function. 6 https://bugs.webkit.org/show_bug.cgi?id=40662 7 8 The zoom factor is a qreal number but its value is truncated to an 9 integer. So a cast to qreal is needed to avoid this issue. 10 11 * Api/qwebframe.cpp: 12 (QWebFrame::print): 13 1 14 2010-06-18 Robert Hogan <robert@webkit.org> 2 15
Note:
See TracChangeset
for help on using the changeset viewer.