From 6688f122cfcfd0f1f87ceb9395def0461c34af2d Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 19 Apr 2015 02:05:17 -0500 Subject: [PATCH] Fix for bug #887 --- src/Screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screenshot.cpp b/src/Screenshot.cpp index d794bd376..558f02860 100644 --- a/src/Screenshot.cpp +++ b/src/Screenshot.cpp @@ -480,7 +480,7 @@ void ScreenFrame::OnCloseWindow(wxCloseEvent & WXUNUSED(event)) void ScreenFrame::OnUIUpdate(wxUpdateUIEvent & WXUNUSED(event)) { #ifdef __WXMAC__ - wxTopLevelWindow *top = mCommand->GetFrontWindow(mContext.proj); + wxTopLevelWindow *top = mCommand->GetFrontWindow(GetActiveProject()); bool needupdate = false; bool enable = false;