Merge pull request #1607 from srcejon/fix_1606

Heat map: Fix crash when chart is not visible.
This commit is contained in:
Edouard Griffiths 2023-02-25 20:19:47 +01:00 committed by GitHub
commit 6b2705065b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ void HeatMapGUI::addToPowerSeries(QDateTime dateTime, double average, double pul
void HeatMapGUI::updateAxis()
{
if (!m_powerPathLossSeries || (m_powerPathLossSeries->count() <= 1)) {
if (!m_powerAverageSeries || !m_powerPathLossSeries || (m_powerPathLossSeries->count() <= 1)) {
return;
}
QDateTime current = QDateTime::currentDateTime();