From 08a43154b415a2786c16c4deb7baa7003a27c0ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Wed, 3 Nov 1999 10:33:47 +0000 Subject: [PATCH] more asserts git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/richedit/wxllist.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samples/richedit/wxllist.cpp b/samples/richedit/wxllist.cpp index ac6046b184..7fb9992447 100644 --- a/samples/richedit/wxllist.cpp +++ b/samples/richedit/wxllist.cpp @@ -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 -- 2.45.2