From 795cbe0c0ccbece944b10c75e75618de8c2b9574 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sun, 16 Apr 2017 11:40:31 +0100 Subject: [PATCH] Improve menu listing from screenshot tool --- src/commands/ScreenshotCommand.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/ScreenshotCommand.cpp b/src/commands/ScreenshotCommand.cpp index 71877014f..2368daf13 100644 --- a/src/commands/ScreenshotCommand.cpp +++ b/src/commands/ScreenshotCommand.cpp @@ -293,7 +293,7 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){ if (item->IsCheck() ) flags +=2; - wxLogDebug("T.Add( %2i, %2i, new wxString(\"%s¬%s\") );", depth, flags, Label,Accel ); + wxLogDebug("T.Add( %2i, %2i, 0, new wxString(\"%s¬%s\") );", depth, flags, Label,Accel ); if (item->IsSubMenu()) { pMenu = item->GetSubMenu(); ExploreMenu( pMenu, item->GetId(), depth+1 ); @@ -315,8 +315,8 @@ void ScreenshotCommand::CaptureMenus(wxMenuBar*pBar, const wxString &fileName) for(i=0;iGetMenuLabelText( i ); - wxLogDebug( "MenuBar: %s", Label ); - ExploreMenu( pBar->GetMenu( i ), pBar->GetId(), 0 ); + wxLogDebug( "\nT.Add( 0, 0, 0, new wxString(\"%s¬\") );", Label); + ExploreMenu( pBar->GetMenu( i ), pBar->GetId(), 1 ); } #if 0