]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsgtk.cpp
making sure it is only breaking at newlines for measuring
[wxWidgets.git] / src / gtk / utilsgtk.cpp
index 8dedb3d2638d4b52019316984594c76a85927c01..f9c83e3166ac6eb56ceee38c827e0f3dd398e901 100644 (file)
@@ -25,8 +25,8 @@
 #include "wx/unix/execute.h"
 
 #ifdef __WXDEBUG__
+    #include "wx/gtk/assertdlg_gtk.h"
     #if wxUSE_STACKWALKER
-        #include "wx/gtk/assertdlg_gtk.h"
         #include "wx/stackwalk.h"
     #endif // wxUSE_STACKWALKER
 #endif // __WXDEBUG__
@@ -386,7 +386,8 @@ extern "C"
 {
     void get_stackframe_callback(StackDump *dump)
     {
-        dump->ProcessFrames(2); // don't show ShowAssertDialog() call itself
+        // skip over frames up to including wxOnAssert()
+        dump->ProcessFrames(3);
     }
 }