Skip to content

Commit 2a1c9c3

Browse files
committedJul 7, 2016
Fix Coverity integer division warning
1 parent 010a850 commit 2a1c9c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,8 @@ int main( int argc, char *argv[] )
10341034
QString mySplashPath( QgsCustomization::instance()->splashPath() );
10351035
QPixmap myPixmap( mySplashPath + QLatin1String( "splash.png" ) );
10361036

1037-
double w = 600 * qApp->desktop()->logicalDpiX() / 96;
1038-
double h = 300 * qApp->desktop()->logicalDpiY() / 96;
1037+
int w = 600 * qApp->desktop()->logicalDpiX() / 96;
1038+
int h = 300 * qApp->desktop()->logicalDpiY() / 96;
10391039

10401040
QSplashScreen *mypSplash = new QSplashScreen( myPixmap.scaled( w, h, Qt::KeepAspectRatio ) );
10411041
if ( !myHideSplash && !mySettings.value( "/qgis/hideSplash" ).toBool() )

0 commit comments

Comments
 (0)
Please sign in to comment.