Skip to content

Commit

Permalink
tool paste: properly handle curved tracks
Browse files Browse the repository at this point in the history
changelog: Bugfixes/Board Editor: proplery handle pasting curved tracks

fixes #772
  • Loading branch information
carrotIndustries committed Apr 29, 2024
1 parent d0da4e8 commit 7e05eb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/tools/tool_paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ ToolResponse ToolPaste::really_begin_paste(const json &j, const Coordi &cursor_p
.first->second;
x->to.junc = &brd->junctions.at(junction_xlat.at(x->to.junc.uuid));
x->from.junc = &brd->junctions.at(junction_xlat.at(x->from.junc.uuid));
if (x->is_arc())
transform(x->center.value());
fix_layer(x->layer);
struct ConnInfo {
ConnInfo(const std::string &w, Track::Connection &c) : where(w), conn(c)
Expand Down

0 comments on commit 7e05eb0

Please sign in to comment.