diff --git a/core/area.cpp b/core/area.cpp index a27bff83d..3c97f42d0 100644 --- a/core/area.cpp +++ b/core/area.cpp @@ -42,7 +42,11 @@ NormalizedPoint& NormalizedPoint::operator=( const NormalizedPoint & p ) void NormalizedPoint::transform( const QMatrix &matrix ) { - matrix.map( x, y, &x, &y ); + qreal tmp_x = (qreal)x; + qreal tmp_y = (qreal)y; + matrix.map( tmp_x, tmp_y, &tmp_x, &tmp_y ); + x = tmp_x; + y = tmp_y; } QDebug operator<<( QDebug str, const Okular::NormalizedPoint& p )