Skip to content

Commit

Permalink
Corrected GitHub issue NOVACProject#169 (NOVACProject#169) where the …
Browse files Browse the repository at this point in the history
…spectrum fit wasn't showing properly
  • Loading branch information
mattias42 committed Apr 11, 2024
1 parent 4e257b4 commit f5b59e8
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 250 deletions.
14 changes: 7 additions & 7 deletions DMSpecView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ LRESULT CDMSpecView::OnDrawColumn(WPARAM wParam, LPARAM lParam)
m_realTimeRouteGraph.m_intensityLimit = dynRange * (100 - m_intensitySliderLow.GetPos());
m_realTimeRouteGraph.DrawRouteGraph();
}
if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
m_showFitDlg.DrawFit();
}
Expand Down Expand Up @@ -850,7 +850,7 @@ void CDMSpecView::OnControlStart()
m_realTimeRouteGraph.DrawRouteGraph();
}

if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
m_showFitDlg.m_spectrometer = m_Spectrometer;
m_showFitDlg.DrawFit();
Expand Down Expand Up @@ -912,7 +912,7 @@ void CDMSpecView::OnControlViewSpectra()
m_realTimeRouteGraph.DrawRouteGraph();
}

if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
m_showFitDlg.m_spectrometer = m_Spectrometer;
m_showFitDlg.DrawFit();
Expand Down Expand Up @@ -996,7 +996,7 @@ void CDMSpecView::OnControlStartWindMeasurement()
m_realTimeRouteGraph.DrawRouteGraph();
}

if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
m_showFitDlg.m_spectrometer = m_Spectrometer;
m_showFitDlg.DrawFit();
Expand Down Expand Up @@ -1339,7 +1339,7 @@ void CDMSpecView::OnUpdateViewColumnError(CCmdUI* pCmdUI)

void CDMSpecView::OnUpdateViewSpectrumFit(CCmdUI* pCmdUI)
{
if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
pCmdUI->SetCheck(BST_CHECKED);
}
Expand All @@ -1351,7 +1351,7 @@ void CDMSpecView::OnUpdateViewSpectrumFit(CCmdUI* pCmdUI)

void CDMSpecView::OnViewSpectrumFit()
{
if (m_showFitDlg.fVisible)
if (m_showFitDlg.m_isVisible)
{
m_showFitDlg.DestroyWindow();
}
Expand All @@ -1370,7 +1370,7 @@ void CDMSpecView::OnViewSpectrumFit()
}
m_showFitDlg.ShowWindow(SW_SHOW);
}
m_showFitDlg.fVisible = !m_showFitDlg.fVisible;
m_showFitDlg.m_isVisible = !m_showFitDlg.m_isVisible;
}

void CDMSpecView::OnControlAddComment()
Expand Down
9 changes: 0 additions & 9 deletions MobileDOAS.cppcheck

This file was deleted.

Loading

0 comments on commit f5b59e8

Please sign in to comment.