From 27ec1ee4feda70bfe4b402337e8f6446c3d65342 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 13 Jan 2005 08:40:52 +0000 Subject: [PATCH] Added a clarifying comment. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10707 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/PopUpMenu.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/PopUpMenu.cpp b/src/kits/interface/PopUpMenu.cpp index 1a88161de9..c36b671e5e 100644 --- a/src/kits/interface/PopUpMenu.cpp +++ b/src/kits/interface/PopUpMenu.cpp @@ -1,5 +1,5 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2001-2004, Haiku +// Copyright (c) 2001-2005, Haiku, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -267,7 +267,6 @@ BPopUpMenu::ScreenLocation() } -//------------------------------------------------------------------------------ // #pragma mark - // private methods @@ -400,9 +399,13 @@ BPopUpMenu::start_track(BPoint where, bool autoInvoke, { BMenuItem *result = NULL; - fUseWhere = true; fWhere = where; + // I know, this doesn't look senseful, but don't be fooled, + // fUseWhere is used in ScreenLocation(), which is a virtual + // called by BMenu::Track() + fUseWhere = true; + // Show the menu's window Show();