git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-05-05 10:20:46 +00:00
parent ad2633bd96
commit 091e74e76b

View File

@ -356,7 +356,11 @@ IMPLEMENT_ABSTRACT_CLASS(wxHtmlWordCell, wxHtmlCell)
wxHtmlWordCell::wxHtmlWordCell(const wxString& word, const wxDC& dc) : wxHtmlCell() wxHtmlWordCell::wxHtmlWordCell(const wxString& word, const wxDC& dc) : wxHtmlCell()
{ {
m_Word = word; m_Word = word;
dc.GetTextExtent(m_Word, &m_Width, &m_Height, &m_Descent); wxCoord w, h, d;
dc.GetTextExtent(m_Word, &w, &h, &d);
m_Width = w;
m_Height = h;
m_Descent = d;
SetCanLiveOnPagebreak(false); SetCanLiveOnPagebreak(false);
m_allowLinebreak = true; m_allowLinebreak = true;
} }