Gui: fix some MSVC truncation warnings

See forum: https://forum.freecad.org/viewtopic.php?t=81051
This commit is contained in:
wmayer
2023-09-10 16:19:49 +02:00
committed by wwmayer
parent 4447634c06
commit 4f27591e67
3 changed files with 10 additions and 4 deletions

View File

@@ -1734,7 +1734,7 @@ void MainWindow::renderDevBuildWarning(
lineHeight = painter.fontMetrics().lineSpacing();
boxWidth = maxSize.width();
}
constexpr float lineExpansionFactor(2.3);
constexpr float lineExpansionFactor(2.3F);
int boxHeight = static_cast<int>(lineHeight*lineExpansionFactor);
// Draw the background rectangle and the text