Changeset 61472 in webkit


Ignore:
Timestamp:
Jun 19, 2010, 1:45:03 AM (15 years ago)
Author:
eric@webkit.org
Message:

2010-06-19 Mirko Damiani <mirko@develer.com>

Reviewed by Simon Hausmann.

[Qt] Avoid truncation of zoom factor in QWebFrame's print function.
https://bugs.webkit.org/show_bug.cgi?id=40662

The zoom factor is a qreal number but its value is truncated to an
integer. So a cast to qreal is needed to avoid this issue.

  • Api/qwebframe.cpp: (QWebFrame::print):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebframe.cpp

    r61063 r61472  
    12731273        return;
    12741274
    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();
    12771277
    12781278    PrintContext printContext(d->frame);
  • trunk/WebKit/qt/ChangeLog

    r61433 r61472  
     12010-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
    1142010-06-18  Robert Hogan  <robert@webkit.org>
    215
Note: See TracChangeset for help on using the changeset viewer.