Skip to content
Snippets Groups Projects
Commit 8ff0f0d1 authored by M.Osterkamp's avatar M.Osterkamp
Browse files

copy lines fixed, except a few errors Erik

parent bb92751c
Branches
Tags
No related merge requests found
...@@ -1912,8 +1912,10 @@ void jpsGraphicsView::Copy_lines(const QPointF& delta) ...@@ -1912,8 +1912,10 @@ void jpsGraphicsView::Copy_lines(const QPointF& delta)
{ {
for (jpsLineItem* line:marked_lines) for (jpsLineItem* line:marked_lines)
{ {
addLineItem(line->get_line()->line().x1()+delta.x(),line->get_line()->line().x2()+delta.x(), addLineItem(line->get_line()->line().p1().x()+delta.x(),
line->get_line()->line().y1()+delta.y(),line->get_line()->line().y2()+delta.y(), line->get_line()->line().p1().y()+delta.y(),
line->get_line()->line().p2().x()+delta.x(),
line->get_line()->line().p2().y()+delta.y(),
line->GetType()); line->GetType());
} }
_statCopy=0; _statCopy=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment