mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
API: Don't accidentally copy board's net info
(cherry picked from commit c9668b81c8bd8547f97aa9c83893f5c2b7522171) Co-authored-by: Jon Evans <jon@craftyjon.com>
This commit is contained in:
parent
9fb98449d9
commit
f9d1a4d31b
@ -1263,7 +1263,7 @@ HANDLER_RESULT<NetClassForNetsResponse> API_HANDLER_PCB::handleGetNetClassForNet
|
|||||||
NetClassForNetsResponse response;
|
NetClassForNetsResponse response;
|
||||||
|
|
||||||
BOARD* board = frame()->GetBoard();
|
BOARD* board = frame()->GetBoard();
|
||||||
NETINFO_LIST nets = board->GetNetInfo();
|
const NETINFO_LIST& nets = board->GetNetInfo();
|
||||||
google::protobuf::Any any;
|
google::protobuf::Any any;
|
||||||
|
|
||||||
for( const board::types::Net& net : aCtx.Request.net() )
|
for( const board::types::Net& net : aCtx.Request.net() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user