1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Refactored some Drawable classes and added DrawableRectangle. Fixed a problem with ApplicationCommandManager.

This commit is contained in:
Julian Storer 2010-10-21 15:46:25 +01:00
parent 618d3fdf64
commit a25d9206d1
28 changed files with 1933 additions and 952 deletions

View file

@ -190,14 +190,12 @@ bool ApplicationCommandManager::invoke (const ApplicationCommandTarget::Invocati
// manager first..
jassert (MessageManager::getInstance()->currentThreadHasLockedMessageManager());
ApplicationCommandTarget* const target = getFirstCommandTarget (info_.commandID);
ApplicationCommandInfo commandInfo (0);
ApplicationCommandTarget* const target = getTargetForCommand (info_.commandID, commandInfo);
if (target == 0)
return false;
ApplicationCommandInfo commandInfo (0);
target->getCommandInfo (info_.commandID, commandInfo);
ApplicationCommandTarget::InvocationInfo info (info_);
info.commandFlags = commandInfo.flags;