[Igarden-commit] Garden/source/LayoutDB RectanglePath.cpp, 1.38.2.1, 1.38.2.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-01-28 23:10:19
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv13081 Modified Files: Tag: Release_branch_v1 RectanglePath.cpp Log Message: Fix save/restore of rectangle paths Index: RectanglePath.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/RectanglePath.cpp,v retrieving revision 1.38.2.1 retrieving revision 1.38.2.2 diff -C2 -d -r1.38.2.1 -r1.38.2.2 *** RectanglePath.cpp 2 Nov 2006 23:27:52 -0000 1.38.2.1 --- RectanglePath.cpp 28 Jan 2007 23:10:13 -0000 1.38.2.2 *************** *** 356,365 **** right.yOffset = _pathPoints[1].yOffset + ((_pathPoints[2].yOffset - _pathPoints[1].yOffset)/2.0); right.zOffset = 0.0; ! top.xOffset = _pathPoints[0].xOffset + ((_pathPoints[1].xOffset - _pathPoints[0].xOffset)/2.0); ! top.yOffset = _pathPoints[0].yOffset + ((_pathPoints[1].yOffset - _pathPoints[0].yOffset)/2.0); ! top.zOffset = 0.0; ! bottom.xOffset = _pathPoints[3].xOffset + ((_pathPoints[2].xOffset - _pathPoints[3].xOffset)/2.0); ! bottom.yOffset = _pathPoints[3].yOffset + ((_pathPoints[2].yOffset - _pathPoints[3].yOffset)/2.0); bottom.zOffset = 0.0; _anchorPoints.push_back(left); _anchorPoints.push_back(right); --- 356,365 ---- right.yOffset = _pathPoints[1].yOffset + ((_pathPoints[2].yOffset - _pathPoints[1].yOffset)/2.0); right.zOffset = 0.0; ! bottom.xOffset = _pathPoints[0].xOffset + ((_pathPoints[1].xOffset - _pathPoints[0].xOffset)/2.0); ! bottom.yOffset = _pathPoints[0].yOffset + ((_pathPoints[1].yOffset - _pathPoints[0].yOffset)/2.0); bottom.zOffset = 0.0; + top.xOffset = _pathPoints[3].xOffset + ((_pathPoints[2].xOffset - _pathPoints[3].xOffset)/2.0); + top.yOffset = _pathPoints[3].yOffset + ((_pathPoints[2].yOffset - _pathPoints[3].yOffset)/2.0); + top.zOffset = 0.0; _anchorPoints.push_back(left); _anchorPoints.push_back(right); |