Skip to content

Commit 4a5969a

Browse files
author
jef
committedSep 17, 2009
fix compile error on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@11674 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 74c7ee9 commit 4a5969a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/app/qgsmaptoolrotatepointsymbols.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ double QgsMapToolRotatePointSymbols::calculateAzimut( const QPoint& mousePos )
231231
{
232232
int dx = mousePos.x() - mSnappedPoint.x();
233233
int dy = mousePos.y() - mSnappedPoint.y();
234-
return 180 - atan2( dx, dy ) * 180.0 / M_PI;
234+
return 180 - atan2( (double) dx, (double) dy ) * 180.0 / M_PI;
235235
}
236236

237237
void QgsMapToolRotatePointSymbols::createPixmapItem()

‎src/app/qgspointrotationitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void QgsPointRotationItem::paint( QPainter * painter )
5353
double h, dAngel;
5454
if ( mPixmap.width() > 0 && mPixmap.height() > 0 )
5555
{
56-
h = sqrt( mPixmap.width() * mPixmap.width() + mPixmap.height() * mPixmap.height() ) / 2; //the half of the item diagonal
56+
h = sqrt( (double) mPixmap.width() * mPixmap.width() + mPixmap.height() * mPixmap.height() ) / 2; //the half of the item diagonal
5757
dAngel = acos( mPixmap.width() / ( h * 2 ) ) * 180 / M_PI; //the diagonal angel of the original rect
5858
x = h * cos(( mRotation - dAngel ) * M_PI / 180 );
5959
y = h * sin(( mRotation - dAngel ) * M_PI / 180 );

0 commit comments

Comments
 (0)
Please sign in to comment.