-
- m_WParser -> CloseContainer();
- c = m_WParser -> OpenContainer();
-
- c -> SetIndent(m_WParser -> GetCharHeight(), HTML_INDENT_VERTICAL);
- c -> SetAlignHor(HTML_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));
-
- m_WParser -> CloseContainer();
- m_WParser -> OpenContainer();
+ bool HasShading;
+
+ m_WParser->CloseContainer();
+ c = m_WParser->OpenContainer();
+
+ c->SetIndent(m_WParser->GetCharHeight(), wxHTML_INDENT_VERTICAL);
+ c->SetAlignHor(wxHTML_ALIGN_CENTER);
+ c->SetAlign(tag);
+ c->SetWidthFloat(tag);
+ sz = 1;
+ tag.GetParamAsInt(wxT("SIZE"), &sz);
+ HasShading = !(tag.HasParam(wxT("NOSHADE")));
+ c->InsertCell(new wxHtmlLineCell((int)((double)sz * m_WParser->GetPixelScale()), HasShading));
+
+ m_WParser->CloseContainer();
+ m_WParser->OpenContainer();