make font settings cross platform

This commit is contained in:
Martin Brodbeck 2018-08-08 09:16:23 +02:00
parent 2561b03583
commit f260bc2b0c
5 changed files with 12 additions and 13 deletions

View file

@ -13,7 +13,7 @@ std::string formatCentAsEuroString(const int cent, int width)
currStream << std::right << std::setw(width) << std::showbase
<< std::put_money(cent, false);
} catch (std::runtime_error& err) {
currStream << std::fixed << std::setw(width) << std::setprecision(2) << cent / 100.0L
currStream << std::fixed << std::setw(width - 2) << std::setprecision(2) << cent / 100.0L
<< "";
}