]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
added missing return on error
[wxWidgets.git] / src / html / winpars.cpp
index b5f8b1ec68e3c94c5617a271e28e1d20a9114717..121b76e3aa2903fdb80b15c3c5fa7375c2d8d608 100644 (file)
@@ -299,7 +299,7 @@ wxFont* wxHtmlWinParser::CreateCurrentFont()
         *faceptr = face;
         *encptr = m_OutputEnc;
         *fontptr = new wxFont(
-                       m_FontsSizes[fs] * m_PixelScale,
+                       (int) (m_FontsSizes[fs] * m_PixelScale),
                        ff ? wxMODERN : wxSWISS,
                        fi ? wxITALIC : wxNORMAL,
                        fb ? wxBOLD : wxNORMAL,