@@ -478,7 +478,7 @@ void GRIBUICtrlBar::OpenFile(bool newestFile) {
478478
479479 ArrayOfGribRecordSets *rsa = m_bGRIBActiveFile->GetRecordSetArrayPtr ();
480480 wxString title;
481- if (m_bGRIBActiveFile ->IsOK ()) {
481+ if (GetGribLayerManager () ->IsOK ()) {
482482 wxFileName fn (m_bGRIBActiveFile->GetFileNames ()[0 ]);
483483 title = (_ (" File: " ));
484484 title.Append (fn.GetFullName ());
@@ -1357,7 +1357,7 @@ void GRIBUICtrlBar::StopPlayBack() {
13571357}
13581358
13591359void GRIBUICtrlBar::TimelineChanged () {
1360- if (!m_bGRIBActiveFile || (m_bGRIBActiveFile && !m_bGRIBActiveFile ->IsOK () )) {
1360+ if (!m_bGRIBActiveFile || ! GetGribLayerManager () ->IsOK ()) {
13611361 pPlugIn->GetGRIBOverlayFactory ()->SetGribTimelineRecordSet (nullptr );
13621362 return ;
13631363 }
@@ -1920,7 +1920,7 @@ void GRIBUICtrlBar::OnNext(wxCommandEvent &event) {
19201920}
19211921
19221922void GRIBUICtrlBar::ComputeBestForecastForNow () {
1923- if (!m_bGRIBActiveFile || (m_bGRIBActiveFile && !m_bGRIBActiveFile ->IsOK ())) {
1923+ if (!m_bGRIBActiveFile || (m_bGRIBActiveFile && !GetGribLayerManager () ->IsOK ())) {
19241924 pPlugIn->GetGRIBOverlayFactory ()->SetGribTimelineRecordSet (nullptr );
19251925 return ;
19261926 }
@@ -1983,7 +1983,7 @@ void GRIBUICtrlBar::SetTimeLineMax(bool SetValue) {
19831983 m_OverlaySettings.GetMinFromIndex (m_OverlaySettings.m_SlicesPerUpdate );
19841984 m_sTimeline->SetMax (m_TimeLineHours * 60 / stepmin);
19851985 } else {
1986- if (m_bGRIBActiveFile && m_bGRIBActiveFile ->IsOK ()) {
1986+ if (GetGribLayerManager () ->IsOK ()) {
19871987 ArrayOfGribRecordSets *rsa = m_bGRIBActiveFile->GetRecordSetArrayPtr ();
19881988 m_sTimeline->SetMax (rsa->GetCount () - 1 );
19891989 }
0 commit comments