]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_hline.cpp
compilation fix for broken OS/2 compiler
[wxWidgets.git] / src / html / m_hline.cpp
index 3eee42e318f5c2cc79125d9146034bbb92938407..87b4e384c546ff68295e11ad6a267eebfe98140e 100644 (file)
 #endif
 
 #ifndef WXPRECOMP
-#include "wx/wx.h"
+    #include "wx/brush.h"
+    #include "wx/pen.h"
+    #include "wx/dc.h"
 #endif
 
-
-
 #include "wx/html/forcelnk.h"
 #include "wx/html/m_templ.h"
 
@@ -80,7 +80,7 @@ TAG_HANDLER_BEGIN(HR, "HR")
         c->SetAlign(tag);
         c->SetWidthFloat(tag);
         sz = 1;
-        if (tag.HasParam(wxT("SIZE")) && tag.ScanParam(wxT("SIZE"), wxT("%i"), &sz) == 1) {}
+        tag.GetParamAsInt(wxT("SIZE"), &sz);
         c->InsertCell(new wxHtmlLineCell((int)((double)sz * m_WParser->GetPixelScale())));
 
         m_WParser->CloseContainer();