[commit] r2410 - trunk/SDK/DecoratorLib
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Thu Jan 2 14:51:11 CST 2014
Author: ksmyth
Date: Thu Jan 2 14:51:11 2014
New Revision: 2410
Log:
DecoratorLib: sort ports with y position tiebreaker
Modified:
trunk/SDK/DecoratorLib/ModelComplexPart.cpp
Modified: trunk/SDK/DecoratorLib/ModelComplexPart.cpp
==============================================================================
--- trunk/SDK/DecoratorLib/ModelComplexPart.cpp Tue Dec 31 12:43:08 2013 (r2409)
+++ trunk/SDK/DecoratorLib/ModelComplexPart.cpp Thu Jan 2 14:51:11 2014 (r2410)
@@ -1279,7 +1279,13 @@
{
bool operator()(PortPart* pPortA, PortPart* pPortB)
{
- return pPortA->GetInnerPosition().y < pPortB->GetInnerPosition().y;
+ CPoint posA = pPortA->GetInnerPosition();
+ CPoint posB = pPortB->GetInnerPosition();
+
+ if (posA.y != posB.y)
+ return posA.y < posB.y;
+
+ return posA.x < posB.y;
}
};
More information about the gme-commit
mailing list