Skip to content
Permalink
Browse files

Fix Coverity integer division warning

  • Loading branch information
nyalldawson committed Jul 7, 2016
1 parent 010a850 commit 2a1c9c349f43cfa142605f1d0eb2fbedcba09e21
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/main.cpp
@@ -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() )

0 comments on commit 2a1c9c3

Please sign in to comment.
You can’t perform that action at this time.