Commit 3b922408 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Check index do not crash

parent b71de874
......@@ -460,7 +460,11 @@ double AltVsTime::findAltitude( SkyPoint *p, double hour ) {
return p->alt().Degrees();
}
void AltVsTime::slotHighlight( int row ) {
void AltVsTime::slotHighlight( int row )
{
if (row < 0)
return;
int rowIndex = 0;
//highlight the curve of the selected object
for ( int i=0; i<avtUI->View->graphCount(); i++ ) {
......@@ -999,7 +1003,7 @@ void AltVsTime::slotUpdateDateLoc() {
else
DayOffset = 0;
setLSTLimits();
setLSTLimits();
slotHighlight( avtUI->PlotList->currentRow() );
avtUI->View->update();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment