mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Fix license reader crash
This commit is contained in:
@@ -730,7 +730,7 @@ static int16_t LicenseReaderFilter(void *context, Dialog *dialog, const TimeTagg
|
|||||||
licenseReaderPointHistory[i] = mouseLocalPt;
|
licenseReaderPointHistory[i] = mouseLocalPt;
|
||||||
licenseReaderIsScrolling = true;
|
licenseReaderIsScrolling = true;
|
||||||
}
|
}
|
||||||
else if (licenseReaderScrollBarWidget->GetRect().Contains(mouseLocalPt))
|
else if (licenseReaderScrollBarWidget != nullptr && licenseReaderScrollBarWidget->GetRect().Contains(mouseLocalPt))
|
||||||
{
|
{
|
||||||
licenseReaderScrollBarWidget->Capture(dialog->GetWindow(), mouseLocalPt, LicenseReaderScrollBarUpdate);
|
licenseReaderScrollBarWidget->Capture(dialog->GetWindow(), mouseLocalPt, LicenseReaderScrollBarUpdate);
|
||||||
licenseReaderTextScroll = licenseReaderScrollBarWidget->GetState();
|
licenseReaderTextScroll = licenseReaderScrollBarWidget->GetState();
|
||||||
|
|||||||
Reference in New Issue
Block a user