bug fix with the history graph plotting (an invalid point was added to the graph)
This commit is contained in:
parent
403bf81f2a
commit
fd69efb060
1 changed files with 5 additions and 1 deletions
|
@ -297,9 +297,13 @@ void CHistoryGraph::Update()
|
|||
|
||||
// add markers
|
||||
for ( i = 0; i < iNumItemsForHistory; i++ )
|
||||
{
|
||||
// only use valid dates
|
||||
if ( vHistoryDataFifo[i].DateTime.date().isValid() )
|
||||
{
|
||||
AddMarker ( vHistoryDataFifo[i] );
|
||||
}
|
||||
}
|
||||
|
||||
// save graph as picture in file
|
||||
Save ( sFileName );
|
||||
|
|
Loading…
Reference in a new issue