more asserts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5efec44300
commit
08a43154b4
@ -329,6 +329,16 @@ wxLayoutObjectText::Layout(wxDC &dc, class wxLayoutList *llist)
|
||||
heightOld = m_Height;
|
||||
#endif // 0
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
CoordType a,b,c,d,e,f;
|
||||
dc.GetTextExtent("test ", &a, &b, &c);
|
||||
dc.GetTextExtent("test", &d, &e, &f);
|
||||
wxASSERT(a != d);
|
||||
wxASSERT(b == e);
|
||||
wxASSERT(c == f);
|
||||
dc.GetTextExtent(" ", &d, &e, &f);
|
||||
wxASSERT(a > 0);
|
||||
#endif
|
||||
dc.GetTextExtent(m_Text, &m_Width, &m_Height, &descent);
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user