From f1076c0f4830a4fb7724e4b4407d8bbb6f056cdb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 31 May 2019 23:17:54 +0100 Subject: [PATCH] Fix missing reference keeping history from getting saved. Fixes: lp:1830185 * https://bugs.launchpad.net/kicad/+bug/1830185 --- eeschema/tools/sch_drawing_tools.cpp | 2 +- eeschema/tools/sch_drawing_tools.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index b542848316..9686d980ad 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -275,7 +275,7 @@ int SCH_DRAWING_TOOLS::PlacePower( const TOOL_EVENT& aEvent ) int SCH_DRAWING_TOOLS::doPlaceComponent( SCH_COMPONENT* aComponent, SCHLIB_FILTER* aFilter, - SCH_BASE_FRAME::HISTORY_LIST aHistoryList ) + SCH_BASE_FRAME::HISTORY_LIST& aHistoryList ) { VECTOR2I cursorPos = getViewControls()->GetCursorPosition(); getViewControls()->ShowCursor( true ); diff --git a/eeschema/tools/sch_drawing_tools.h b/eeschema/tools/sch_drawing_tools.h index 856f7b12db..01c7a9598c 100644 --- a/eeschema/tools/sch_drawing_tools.h +++ b/eeschema/tools/sch_drawing_tools.h @@ -73,7 +73,7 @@ public: private: int doPlaceComponent( SCH_COMPONENT* aComponent, SCHLIB_FILTER* aFilter, - SCH_BASE_FRAME::HISTORY_LIST aHistoryList ); + SCH_BASE_FRAME::HISTORY_LIST& aHistoryList ); int doSingleClickPlace( KICAD_T aType );