summaryrefslogtreecommitdiffstats
path: root/Project/Line.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-01-06 20:49:28 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2017-01-06 20:49:28 -0200
commit2cd589742c6a4fd289d2f0696d844ccf18b917cb (patch)
tree42a64542d07a4997be5e216ffd54a27e39f76b56 /Project/Line.cpp
parent6a268dba6da88e0a371ce6358e4f43b0c3d08d7d (diff)
downloadPSP.git-2cd589742c6a4fd289d2f0696d844ccf18b917cb.tar.gz
PSP.git-2cd589742c6a4fd289d2f0696d844ccf18b917cb.tar.xz
PSP.git-2cd589742c6a4fd289d2f0696d844ccf18b917cb.zip
Several bugfixes on power elements
Diffstat (limited to 'Project/Line.cpp')
-rw-r--r--Project/Line.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/Line.cpp b/Project/Line.cpp
index 7e1755e..66a43c5 100644
--- a/Project/Line.cpp
+++ b/Project/Line.cpp
@@ -239,7 +239,7 @@ void Line::MoveNode(Element* parent, wxPoint2DDouble position)
// If the line is selected, move all the points, except the switches and buses points.
if(m_selected) {
- for(int i = 2; i < (int)m_pointList.size() - 2; i++) {
+ for(int i = 2; i < (int)m_pointList.size() - 1; i++) {
m_pointList[i] = m_movePts[i] + position - m_moveStartPt;
}
}