From d827f06a74022ab85527dd10f6e877fad12beedf Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 5 Jan 2022 12:59:53 -0500 Subject: [PATCH] Gerbview: fix borked cleanup of layer remapping Happened in 4ba3937f8af3b392f428e02d1a776a2f24101698 --- gerbview/gerbview_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index e19e1a1b7f..267d7959bd 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -510,7 +510,7 @@ void GERBVIEW_FRAME::SortLayersByX2Attributes() for( const std::pair& entry : remapping ) { - view_remapping[ entry.first ] = GERBER_DRAW_LAYER( entry.second ); + view_remapping[ GERBER_DRAW_LAYER( entry.first ) ] = GERBER_DRAW_LAYER( entry.second ); view_remapping[ GERBER_DCODE_LAYER( entry.first ) ] = GERBER_DCODE_LAYER( entry.second ); }