瀏覽代碼

compiler warning

David Rose 16 年之前
父節點
當前提交
37b75fd745
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/plugin/p3dCert.cxx

+ 1 - 1
direct/src/plugin/p3dCert.cxx

@@ -414,7 +414,7 @@ layout() {
 
 
   wxFont font = panel->GetFont();
   wxFont font = panel->GetFont();
   wxFont *bold_font = wxTheFontList->FindOrCreateFont
   wxFont *bold_font = wxTheFontList->FindOrCreateFont
-    (font.GetPointSize() * 1.5f,
+    ((int)(font.GetPointSize() * 1.5),
      font.GetFamily(), font.GetStyle(), wxFONTWEIGHT_BOLD);
      font.GetFamily(), font.GetStyle(), wxFONTWEIGHT_BOLD);
 
 
   if (!header.IsEmpty()) {
   if (!header.IsEmpty()) {