Fix mismatches between format strings and arguments.
This corrects the asserts which are now triggered when the actual arguments don't match the format string. Closes #12265. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -764,7 +764,7 @@ void MyCanvas::DrawText(wxDC& dc)
|
||||
wxCoord height;
|
||||
wxCoord descent;
|
||||
dc.GetTextExtent( wxT("This is Swiss 18pt text."), &length, &height, &descent );
|
||||
text.Printf( wxT("Dimensions are length %ld, height %ld, descent %ld"), length, height, descent );
|
||||
text.Printf( wxT("Dimensions are length %d, height %d, descent %d"), length, height, descent );
|
||||
dc.DrawText( text, 110, 80 );
|
||||
|
||||
text.Printf( wxT("CharHeight() returns: %d"), dc.GetCharHeight() );
|
||||
|
Reference in New Issue
Block a user