diff --git a/scwx-qt/source/scwx/qt/map/map_widget.cpp b/scwx-qt/source/scwx/qt/map/map_widget.cpp index 9096a4b7..ffedbcc7 100644 --- a/scwx-qt/source/scwx/qt/map/map_widget.cpp +++ b/scwx-qt/source/scwx/qt/map/map_widget.cpp @@ -1185,6 +1185,8 @@ void MapWidgetImpl::AddLayers() layerList_.clear(); genericLayers_.clear(); placefileLayers_.clear(); + customLayers_.clear(); + customLayers_.shrink_to_fit(); // Update custom layer list from model customLayers_ = model::LayerModel::Instance()->GetLayers();