]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilo.
authorRobert Roebling <robert@roebling.de>
Sat, 5 May 2007 10:20:46 +0000 (10:20 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 5 May 2007 10:20:46 +0000 (10:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index a7a602f54e74361142ae50219498a192b692be2d..4bed6f3f9c75b7d3a99b9d7671657fe73e1d05a2 100644 (file)
@@ -356,7 +356,11 @@ IMPLEMENT_ABSTRACT_CLASS(wxHtmlWordCell, wxHtmlCell)
 wxHtmlWordCell::wxHtmlWordCell(const wxString& word, const wxDC& dc) : wxHtmlCell()
 {
     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);
     m_allowLinebreak = true;
 }