# HG changeset patch # User Chris Cannam # Date 1477405741 -3600 # Node ID e6c798c9bc91675d19aeb8dc9692f22ea5f28df9 # Parent 2ab1cf27a766221d5870dfd0e936bf17c0c8876c Minor build updates diff -r 2ab1cf27a766 -r e6c798c9bc91 widgets/WindowShapePreview.cpp --- a/widgets/WindowShapePreview.cpp Tue Oct 25 11:04:50 2016 +0100 +++ b/widgets/WindowShapePreview.cpp Tue Oct 25 15:29:01 2016 +0100 @@ -47,13 +47,13 @@ void WindowShapePreview::updateLabels() { - float scaleRatio = QFontMetrics(font()).height() / 14.f; + float scaleRatio = float(QFontMetrics(font()).height()) / 14.f; if (scaleRatio < 1.f) scaleRatio = 1.f; int step = int(24 * scaleRatio); - float peak = int(48 * scaleRatio); + float peak = float(48 * scaleRatio); - int w = step * 4, h = (peak * 4) / 3; + int w = step * 4, h = int((peak * 4) / 3); WindowType type = m_windowType; Window windower = Window(type, step * 2);