From 47eaf75778f34d2b876541caafb52751392d0301 Mon Sep 17 00:00:00 2001 From: elasota Date: Sat, 24 Oct 2020 23:47:27 -0400 Subject: [PATCH] Fix license reader crash --- GpApp/About.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GpApp/About.cpp b/GpApp/About.cpp index 41c7fa9..da5e5b7 100644 --- a/GpApp/About.cpp +++ b/GpApp/About.cpp @@ -730,7 +730,7 @@ static int16_t LicenseReaderFilter(void *context, Dialog *dialog, const TimeTagg licenseReaderPointHistory[i] = mouseLocalPt; licenseReaderIsScrolling = true; } - else if (licenseReaderScrollBarWidget->GetRect().Contains(mouseLocalPt)) + else if (licenseReaderScrollBarWidget != nullptr && licenseReaderScrollBarWidget->GetRect().Contains(mouseLocalPt)) { licenseReaderScrollBarWidget->Capture(dialog->GetWindow(), mouseLocalPt, LicenseReaderScrollBarUpdate); licenseReaderTextScroll = licenseReaderScrollBarWidget->GetState();