Mercurial > hg > svgui
diff view/ViewManager.cpp @ 908:4a578a360011 cxx11
More type fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 13:22:10 +0000 |
parents | a1226b3b7925 |
children | b48db6f1a7d2 |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Mar 10 10:31:27 2015 +0000 +++ b/view/ViewManager.cpp Tue Mar 10 13:22:10 2015 +0000 @@ -723,15 +723,15 @@ int ViewManager::scalePixelSize(int pixels) { - static float ratio = 0.f; - if (ratio == 0.f) { - float baseEm; + static double ratio = 0.0; + if (ratio == 0.0) { + double baseEm; #ifdef Q_OS_MAC - baseEm = 17.f; + baseEm = 17.0; #else - baseEm = 15.f; + baseEm = 15.0; #endif - float em = QFontMetrics(QFont()).height(); + double em = QFontMetrics(QFont()).height(); ratio = em / baseEm; }