From f2c5856124375b07734144b22c9db6b83b49fa84 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 28 Dec 2020 22:38:02 -0500 Subject: [PATCH] Correct comment about the cast --- eeschema/sim/sim_plot_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 2ea8dbaa09..54bcddb610 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -1216,7 +1216,8 @@ void SIM_PLOT_FRAME::menuWhiteBackground( wxCommandEvent& event ) if( curPage == m_welcomePanel ) continue; - // ensure it is truely a plot panel and not the welcome panel which is only SIM_PLOT_PANEL_BASE + // ensure it is truely a plot panel and not the (zero plots) placeholder + // which is only SIM_PLOT_PANEL_BASE SIM_PLOT_PANEL* panel = dynamic_cast( curPage ); if( panel != nullptr )