]> git.saurik.com Git - wxWidgets.git/commitdiff
show 20 lines of stack in assert, this should still hold on any reasonable screen
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Apr 2005 23:25:10 +0000 (23:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Apr 2005 23:25:10 +0000 (23:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index 0f2c5edd343fa362941961bfa76a62423d8aa7dc..ee78eb257c32e94ca252aff8bdde098feb24df2d 100644 (file)
@@ -774,8 +774,10 @@ void ShowAssertDialog(const wxChar *szFile,
     dump.Walk(5); // don't show OnAssert() call itself
     wxString stackTrace = dump.GetStackTrace();
 
-    const int maxLines = 10;
-    // Don't show more than maxLines or we could get an enormous dialog
+    // don't show more than maxLines or we could get a dialog too tall to be
+    // shown on screen: 20 should be ok everywhere as even with 15 pixel high
+    // characters it is still only 300 pixels...
+    const int maxLines = 20;
     int count = stackTrace.Freq(wxT('\n'));
     if (count > maxLines)
     {