diff --git pgadmin/ctl/ctlMenuToolbar.cpp pgadmin/ctl/ctlMenuToolbar.cpp
index 8951aa4..d435178 100644
--- pgadmin/ctl/ctlMenuToolbar.cpp
+++ pgadmin/ctl/ctlMenuToolbar.cpp
@@ -2,7 +2,7 @@
 //
 // pgAdmin III - PostgreSQL Tools
 //
-// Copyright (C) 2002 - 2014, The pgAdmin Development Team
+// Copyright (C) 2002 - 2015, The pgAdmin Development Team
 // This software is released under the PostgreSQL Licence
 //
 // ctlMenuToolbar.cpp - Menu tool bar
@@ -79,7 +79,7 @@ void ctlMenuButton::Create(wxWindow *window, wxToolBar *toolBar, int ID, wxMenu
 
 void ctlMenuButton::DoProcessLeftClick(wxMouseEvent &event)
 {
-	wxPoint menu_pos;
+	int x,y;
 
 	if(m_toolBar)
 	{
@@ -88,8 +88,8 @@ void ctlMenuButton::DoProcessLeftClick(wxMouseEvent &event)
 
 		// ** Assume that pulldown is to the right of a standard toolbar button,
 		//    so, move the x position back one standard toolbar button's width
-		menu_pos.x = - tool_size.GetWidth();
-		menu_pos.y =  button_size.GetHeight() / 2 + tool_size.GetHeight() / 2;
+		x = - tool_size.GetWidth();
+		y =  button_size.GetHeight() / 2 + tool_size.GetHeight() / 2;
 
 #ifdef __WXMAC__
 		wxSize tbar_size = m_toolBar->GetSize();
@@ -97,19 +97,18 @@ void ctlMenuButton::DoProcessLeftClick(wxMouseEvent &event)
 		int iToolSep = m_toolBar->GetToolSeparation();
 		if(iToolSep == 0) iToolSep = 5;
 
-		menu_pos.x += - iToolSep;
-		menu_pos.y = tbar_size.GetHeight() - button_pos.y / 2;
+		x += - iToolSep;
+		y = tbar_size.GetHeight() - button_pos.y / 2;
 #endif
 	}
 	else
 	{
 		wxSize button_size;
 		button_size = GetSize();
-		menu_pos.x = 0;
-		menu_pos.y = button_size.GetHeight();
+		x = 0;
+		y = button_size.GetHeight();
 	}
-
-	PopupMenu(m_menu, menu_pos);
+	DoPopupMenu(m_menu, x,y);
 }
 
 
