bug fix with the history graph plotting (an invalid point was added to the graph)

This commit is contained in:
Volker Fischer 2016-03-06 10:39:59 +00:00
parent 403bf81f2a
commit fd69efb060

View File

@ -298,7 +298,11 @@ void CHistoryGraph::Update()
// add markers
for ( i = 0; i < iNumItemsForHistory; i++ )
{
AddMarker ( vHistoryDataFifo[i] );
// only use valid dates
if ( vHistoryDataFifo[i].DateTime.date().isValid() )
{
AddMarker ( vHistoryDataFifo[i] );
}
}
// save graph as picture in file