[GME-commit] GMESRC/GME/Gme/AutoRoute ArHelper.cpp,1.1,1.2
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Fri Nov 18 16:57:41 CST 2005
Update of /project/gme-repository/GMESRC/GME/Gme/AutoRoute
In directory escher:/tmp/cvs-serv9458
Modified Files:
ArHelper.cpp
Log Message:
Fixing (JIRA GME-119) gui autoselect bug.
Some edges became of length 0 after autorouting, confusing the IsPointNearLine function.
Fixing with returning FALSE whenever an edge has startpoint == endpoint.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: ArHelper.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/AutoRoute/ArHelper.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ArHelper.cpp 5 Jul 2000 19:20:00 -0000 1.1
--- ArHelper.cpp 18 Nov 2005 16:57:38 -0000 1.2
***************
*** 80,83 ****
--- 80,90 ----
ASSERT( 0 <= nearness );
+ // begin Zolmol
+ // the routing may create edges that have start==end
+ // thus confusing this algorithm
+ if( end.x == start.x && end.y == start.y)
+ return 0;
+ // end Zolmol
+
point -= start;
end -= start;
More information about the GME-commit
mailing list