mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-14 20:03:38 +00:00
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:
parent
a56c456bf8
commit
bd833bdd5c
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue