From 447f3ee821aefa78bb1a40dae7d916619c74f18d Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Tue, 9 Jan 2024 23:02:44 -0600 Subject: [PATCH] Don't allow hover over sweep time if there is no data to display, preventing crash --- scwx-qt/source/scwx/qt/map/overlay_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/map/overlay_layer.cpp b/scwx-qt/source/scwx/qt/map/overlay_layer.cpp index c9cfca07..40c323ba 100644 --- a/scwx-qt/source/scwx/qt/map/overlay_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/overlay_layer.cpp @@ -208,7 +208,7 @@ void OverlayLayer::Render( ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize); - if (ImGui::IsWindowHovered()) + if (radarProductView != nullptr && ImGui::IsWindowHovered()) { // Show a detailed product description when the sweep time is hovered p->sweepTimePicked_ = true;