X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3096bd2fa7b88105bc54c08e3c878585de1a9b91..f35aa3daa3106af9c062ef4981fcbf91983ba193:/src/html/m_hline.cpp diff --git a/src/html/m_hline.cpp b/src/html/m_hline.cpp index 5a58178972..1f09c5d378 100644 --- a/src/html/m_hline.cpp +++ b/src/html/m_hline.cpp @@ -79,9 +79,9 @@ TAG_HANDLER_BEGIN(HR, "HR") c -> SetAlignHor(wxHTML_ALIGN_CENTER); c -> SetAlign(tag); c -> SetWidthFloat(tag); + sz = 1; if (tag.HasParam(wxT("SIZE")) && tag.ScanParam(wxT("SIZE"), wxT("%i"), &sz) == 1) {} - else sz = 1; - c -> InsertCell(new wxHtmlLineCell(sz)); + c -> InsertCell(new wxHtmlLineCell((int)((double)sz * m_WParser -> GetPixelScale()))); m_WParser -> CloseContainer(); m_WParser -> OpenContainer();