Mercurial > hg > svgui
diff widgets/CSVFormatDialog.cpp @ 922:26da827e8fb5 tonioni
Merge from cxx11 branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 11:26:28 +0000 |
parents | 50be12cf2802 |
children | 2633a1d73e39 |
line wrap: on
line diff
--- a/widgets/CSVFormatDialog.cpp Mon Mar 23 10:04:51 2015 +0000 +++ b/widgets/CSVFormatDialog.cpp Mon Mar 23 11:26:28 2015 +0000 @@ -30,6 +30,7 @@ #include <QDialogButtonBox> #include <iostream> +#include <cmath> #include "base/Debug.h" @@ -62,7 +63,7 @@ exampleFrame->setPalette(palette); QFont fp; - fp.setPointSize(fp.pointSize() * 0.9); + fp.setPointSize(int(floor(fp.pointSize() * 0.9))); // fp.setFixedPitch(true); // fp.setStyleHint(QFont::TypeWriter); // fp.setFamily("Monospaced");