Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Coverity integer division warning
  • Loading branch information
nyalldawson committed Jul 7, 2016
1 parent 010a850 commit 2a1c9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/main.cpp
Expand Up @@ -1034,8 +1034,8 @@ int main( int argc, char *argv[] )
QString mySplashPath( QgsCustomization::instance()->splashPath() );
QPixmap myPixmap( mySplashPath + QLatin1String( "splash.png" ) );

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

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

0 comments on commit 2a1c9c3

Please sign in to comment.