From 4ffbefb9dc61df51d860bc057facc602e94db5fa Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 12 Jan 2020 19:39:39 +0000 Subject: [PATCH] Use the layer from the module item instead They are both from the same argument, but this one make coverity happy. --- pcbnew/dialogs/dialog_graphic_item_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_graphic_item_properties.cpp b/pcbnew/dialogs/dialog_graphic_item_properties.cpp index b3fc7172c2..dfe6141a0c 100644 --- a/pcbnew/dialogs/dialog_graphic_item_properties.cpp +++ b/pcbnew/dialogs/dialog_graphic_item_properties.cpp @@ -113,7 +113,7 @@ DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES( PCB_BASE_EDIT_FR // If someone went to the trouble of setting the layer in a text editor, then there's // very little sense in nagging them about it. - forbiddenLayers.set( m_item->GetLayer(), false ); + forbiddenLayers.set( m_moduleItem->GetLayer(), false ); m_LayerSelectionCtrl->SetNotAllowedLayerSet( forbiddenLayers ); }