Well, wxHTML compiles in Unicode mode now. But if it works (without
further changes), it shall be considered proof that there is such a thing as a divine intervention. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,11 +73,11 @@ bool wxHtmlCell::AdjustPagebreak(int *pagebreak)
|
||||
wxHtmlWordCell::wxHtmlWordCell(const wxString& word, wxDC& dc) : wxHtmlCell()
|
||||
{
|
||||
m_Word = word;
|
||||
m_Word.Replace(" ", " ", TRUE);
|
||||
m_Word.Replace(""", "\"", TRUE);
|
||||
m_Word.Replace("<", "<", TRUE);
|
||||
m_Word.Replace(">", ">", TRUE);
|
||||
m_Word.Replace("&", "&", TRUE);
|
||||
m_Word.Replace(wxT(" "), wxT(" "), TRUE);
|
||||
m_Word.Replace(wxT("""), wxT("\""), TRUE);
|
||||
m_Word.Replace(wxT("<"), wxT("<"), TRUE);
|
||||
m_Word.Replace(wxT(">"), wxT(">"), TRUE);
|
||||
m_Word.Replace(wxT("&"), wxT("&"), TRUE);
|
||||
dc.GetTextExtent(m_Word, &m_Width, &m_Height, &m_Descent);
|
||||
SetCanLiveOnPagebreak(FALSE);
|
||||
}
|
||||
@@ -381,11 +381,11 @@ void wxHtmlContainerCell::SetWidthFloat(const wxHtmlTag& tag)
|
||||
wxString wd = tag.GetParam("WIDTH");
|
||||
|
||||
if (wd[wd.Length()-1] == '%') {
|
||||
sscanf(wd.c_str(), "%i%%", &wdi);
|
||||
wxSscanf(wd.c_str(), wxT("%i%%"), &wdi);
|
||||
SetWidthFloat(wdi, wxHTML_UNITS_PERCENT);
|
||||
}
|
||||
else {
|
||||
sscanf(wd.c_str(), "%i", &wdi);
|
||||
wxSscanf(wd.c_str(), wxT("%i"), &wdi);
|
||||
SetWidthFloat(wdi, wxHTML_UNITS_PIXELS);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user