Avoid passing float argument for "%f" printf specifier

"%f" takes a double. Eliminates some -Wdouble-promotion warnings.
This commit is contained in:
Paul Cornett
2020-04-21 11:59:36 -07:00
parent 62372d4337
commit c5faf9cfac
10 changed files with 21 additions and 21 deletions

View File

@@ -141,7 +141,7 @@ wxString GetPenPattern(const wxPen& pen)
// When the pen width increases, lines become thicker and unrecognizable.
// Multiplying with 1/3th of the width creates line styles matching the appearance of wxDC.
// The pen width is not used to modify user provided dash styles.
float w = pen.GetWidth();
double w = pen.GetWidth();
if (pen.GetWidth() == 0)
w = 1;
w = w / 3;