Commit 1de860b5 authored by Jan Möbius's avatar Jan Möbius

Fixed polyline merge crash, when picked object is not a poly line

closes #1376



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16071 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ee8a504b
......@@ -993,7 +993,7 @@ me_merge( QMouseEvent* _event )
if (PluginFunctions::getPickedObject(node_idx, obj)) {
// is picked object polyline?
PolyLineObject* cur_pol = PluginFunctions::polyLineObject(obj);
if (cur_pol)
if (cur_pol) {
// Check if we got a line segment or a vertex
if ( target_idx >= cur_pol->line()->n_vertices() )
......@@ -1012,6 +1012,8 @@ me_merge( QMouseEvent* _event )
// cur_pol->line()->add_point( cur_pol->line()->point( cur_pol->line()->n_vertices()-1));
move_point_ref_ = &(cur_pol->line()->point(cur_pol->line()->n_vertices() - 1));
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment