From ece9a782acfed8d2c4be8a6ab54f11304971b595 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 25 Jul 2022 11:15:02 -0400 Subject: [PATCH] Gerbview: unexceptional exception cleanups --- common/view/view.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/view/view.cpp b/common/view/view.cpp index 23c2e9f10d..c23b96400a 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -175,12 +175,8 @@ private: int orig_layer = m_groups[i].first; int new_layer = orig_layer; - try - { + if( aReorderMap.count( orig_layer ) ) new_layer = aReorderMap.at( orig_layer ); - } - catch( const std::out_of_range& ) - {} m_groups[i].first = new_layer; }