]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_hline.cpp
Adding MSVC makefile support for building the TIFF library
[wxWidgets.git] / src / html / m_hline.cpp
index 3fbad4d47c714f7bb7d94265a361e403344bd8cd..1f09c5d378f37ad3c76718d5a106bd2950aabbdf 100644 (file)
@@ -11,7 +11,7 @@
 #pragma implementation
 #endif
 
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 
 #include "wx/defs.h"
@@ -21,7 +21,7 @@
 #endif
 
 #ifndef WXPRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
 #endif
 
 
@@ -79,9 +79,9 @@ TAG_HANDLER_BEGIN(HR, "HR")
         c -> SetAlignHor(wxHTML_ALIGN_CENTER);
         c -> SetAlign(tag);
         c -> SetWidthFloat(tag);
-        if (tag.HasParam("SIZE") && tag.ScanParam("SIZE", "%i", &sz) == 1) {}
-        else sz = 1;
-        c -> InsertCell(new wxHtmlLineCell(sz));
+        sz = 1;
+        if (tag.HasParam(wxT("SIZE")) && tag.ScanParam(wxT("SIZE"), wxT("%i"), &sz) == 1) {}
+        c -> InsertCell(new wxHtmlLineCell((int)((double)sz * m_WParser -> GetPixelScale())));
 
         m_WParser -> CloseContainer();
         m_WParser -> OpenContainer();