From 96534c011447a53ff50689d701f167fbec7fd86b Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 14 Apr 2017 15:42:15 +0100 Subject: [PATCH] Tweak menu screenshot code (show check/submenu options) --- src/commands/ScreenshotCommand.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/ScreenshotCommand.cpp b/src/commands/ScreenshotCommand.cpp index ef3f62f4d..71877014f 100644 --- a/src/commands/ScreenshotCommand.cpp +++ b/src/commands/ScreenshotCommand.cpp @@ -287,7 +287,13 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){ Accel = ""; if( item->IsSeparator() ) Label = "----"; - wxLogDebug("%2i,%s,%s", depth, Label,Accel ); + int flags = 0; + if (item->IsSubMenu()) + flags +=1; + if (item->IsCheck() ) + flags +=2; + + wxLogDebug("T.Add( %2i, %2i, new wxString(\"%s¬%s\") );", depth, flags, Label,Accel ); if (item->IsSubMenu()) { pMenu = item->GetSubMenu(); ExploreMenu( pMenu, item->GetId(), depth+1 );