about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/report_popup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/report_popup.cpp b/src/report_popup.cpp index 7ceef0d..703e87f 100644 --- a/src/report_popup.cpp +++ b/src/report_popup.cpp
@@ -36,6 +36,10 @@ void ReportPopup::Reset() {
36} 36}
37 37
38void ReportPopup::ResetIndicators() { 38void ReportPopup::ResetIndicators() {
39 if (door_id_ == -1) {
40 return;
41 }
42
39 wxFont the_font = GetFont().Scale(GetDPIScaleFactor()); 43 wxFont the_font = GetFont().Scale(GetDPIScaleFactor());
40 const std::map<std::string, bool>& report = GetDoorRequirements(door_id_); 44 const std::map<std::string, bool>& report = GetDoorRequirements(door_id_);
41 45
@@ -67,6 +71,10 @@ void ReportPopup::ResetIndicators() {
67} 71}
68 72
69void ReportPopup::UpdateIndicators() { 73void ReportPopup::UpdateIndicators() {
74 if (door_id_ == -1) {
75 return;
76 }
77
70 wxFont the_font = GetFont().Scale(GetDPIScaleFactor()); 78 wxFont the_font = GetFont().Scale(GetDPIScaleFactor());
71 const std::map<std::string, bool>& report = GetDoorRequirements(door_id_); 79 const std::map<std::string, bool>& report = GetDoorRequirements(door_id_);
72 80