From: <xf...@us...> - 2014-01-30 13:39:01
|
Revision: 1894 http://sourceforge.net/p/scstudio/code/1894 Author: xfarmad Date: 2014-01-30 13:38:58 +0000 (Thu, 30 Jan 2014) Log Message: ----------- hmsc connection-line points extraction from Visio fixed Modified Paths: -------------- trunk/src/view/visio/addon/extract.cpp Modified: trunk/src/view/visio/addon/extract.cpp =================================================================== --- trunk/src/view/visio/addon/extract.cpp 2014-01-30 11:17:49 UTC (rev 1893) +++ trunk/src/view/visio/addon/extract.cpp 2014-01-30 13:38:58 UTC (rev 1894) @@ -1764,11 +1764,12 @@ { NodeRelation *new_node_relation = new NodeRelation(); new_node_relation->set_color(shape_color); - PolyLine line; + PolyLine line; + MscPoint start = GetLineBegin(shape); short rows = shape->RowCount[visSectionFirstComponent]-1; for(short i = 2; i<rows; i++) { - MscPoint point(shape->CellsSRC[visSectionFirstComponent][i][0]->Result[visMillimeters], shape->CellsSRC[visSectionFirstComponent][i][1]->Result[visMillimeters]); + MscPoint point( shape->CellsSRC[visSectionFirstComponent][i][0]->Result[visMillimeters] + start.get_x(), start.get_y() - shape->CellsSRC[visSectionFirstComponent][i][1]->Result[visMillimeters]); line.push_back_point(point); } new_node_relation->set_line(line); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |