Skip to content

Commit

Permalink
Applied patch from smizuno #1313
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9330 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 15, 2008
1 parent 11a6db5 commit 8566c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsscalecalculator.cpp
Expand Up @@ -81,7 +81,7 @@ double QgsScaleCalculator::calculate( const QgsRect &mapExtent, int canvasWidth
QgsDebugMsg( "Can't calculate scale from the input values" );
return 0;
}
double scale = ( delta * conversionFactor ) / ( canvasWidth / mDpi );
double scale = ( delta * conversionFactor ) / ( (double)canvasWidth / mDpi );
return scale;
}

Expand Down

0 comments on commit 8566c43

Please sign in to comment.