From e19882577a44021d37ce01863653414fee087a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20=C3=96dmark?= Date: Sun, 17 Sep 2017 20:29:48 +0200 Subject: [PATCH] fixed a comment, copies now retain their path if any --- pcbnew/kicad_clipboard.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcbnew/kicad_clipboard.cpp b/pcbnew/kicad_clipboard.cpp index 49a932c8e1..7b5198c42e 100644 --- a/pcbnew/kicad_clipboard.cpp +++ b/pcbnew/kicad_clipboard.cpp @@ -96,7 +96,7 @@ void CLIPBOARD_IO::SaveSelection( SELECTION& aSelected ) { pad->SetNetCode( 0,0 ); } - mod->SetPath( "" ); + Format(static_cast( mod ) ); } @@ -130,7 +130,7 @@ void CLIPBOARD_IO::SaveSelection( SELECTION& aSelected ) Format( &module, 0 ); } - // lots of shite selected + // lots of stuff selected else { // we will fake being a .kicad_pcb to get the full parser kicking @@ -154,7 +154,6 @@ void CLIPBOARD_IO::SaveSelection( SELECTION& aSelected ) ( i->Type() != PCB_MODULE_TEXT_T ) && ( i->Type() != PCB_PAD_T ) ) { - //std::cout <<"type "<< i->Type() << std::endl; auto item = static_cast( i ); Format( item, 1 ); }