From: <xb...@us...> - 2013-09-06 11:59:04
|
Revision: 1860 http://sourceforge.net/p/scstudio/code/1860 Author: xborza Date: 2013-09-06 11:59:01 +0000 (Fri, 06 Sep 2013) Log Message: ----------- order snapping for found and lost messages fixed Modified Paths: -------------- trunk/src/view/visio/addon/orderSnapping.cpp Modified: trunk/src/view/visio/addon/orderSnapping.cpp =================================================================== --- trunk/src/view/visio/addon/orderSnapping.cpp 2013-09-02 18:06:23 UTC (rev 1859) +++ trunk/src/view/visio/addon/orderSnapping.cpp 2013-09-06 11:59:01 UTC (rev 1860) @@ -268,7 +268,8 @@ toDel = it; //check to which side of message the connection point is attached Visio::IVShapePtr msgShape = (*it)->FromSheet; - if(_tcsicmp((*it)->FromCell->GetName(), L"BeginX") == 0) + //check if message has 2 or only 1 connection point / lost ot found message + if(_tcsicmp((*it)->FromCell->GetName(), L"BeginX") == 0 || msgShape->RowCount[visSectionConnectionPts] == 1) result = msgShape->CellsSRC[visSectionConnectionPts][0][0]; else result = msgShape->CellsSRC[visSectionConnectionPts][1][0]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |