hopefully make it compile and work also where qreal is not double but float

svn path=/trunk/KDE/kdegraphics/okular/; revision=837842
This commit is contained in:
Pino Toscano 2008-07-25 20:51:42 +00:00
parent a56c456bf8
commit bd833bdd5c

View file

@ -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 )