mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
5ac1c37f47
commit
a42cf919e9
1 changed files with 3 additions and 3 deletions
|
|
@ -57,15 +57,15 @@ public:
|
|||
static int compareElements (const Component* const first, const Component* const second) throw()
|
||||
{
|
||||
int explicitOrder1 = first->getExplicitFocusOrder();
|
||||
if (explicitOrder1 < 0)
|
||||
if (explicitOrder1 <= 0)
|
||||
explicitOrder1 = INT_MAX / 2;
|
||||
|
||||
int explicitOrder2 = second->getExplicitFocusOrder();
|
||||
if (explicitOrder2 < 0)
|
||||
if (explicitOrder2 <= 0)
|
||||
explicitOrder2 = INT_MAX / 2;
|
||||
|
||||
if (explicitOrder1 != explicitOrder2)
|
||||
return explicitOrder2 - explicitOrder1;
|
||||
return explicitOrder1 - explicitOrder2;
|
||||
|
||||
const int diff = first->getY() - second->getY();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue