From cdf758b17368eb60fb7f6dab14018623f9e115e4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 11 Aug 2016 14:41:55 +0200 Subject: [PATCH] Automatically update cursor coordinates --- eeschema/sim/sim_plot_panel.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eeschema/sim/sim_plot_panel.h b/eeschema/sim/sim_plot_panel.h index 371fe9ae82..59eaabcc69 100644 --- a/eeschema/sim/sim_plot_panel.h +++ b/eeschema/sim/sim_plot_panel.h @@ -39,6 +39,7 @@ public: : mpInfoLayer( wxRect( 0, 0, DRAG_MARGIN, DRAG_MARGIN ), wxTRANSPARENT_BRUSH ), m_trace( aTrace ), m_updateRequired( true ), m_coords( 0.0, 0.0 ), m_window( nullptr ) { + SetDrawOutsideMargins( false ); } void Plot( wxDC& aDC, mpWindow& aWindow ) override; @@ -85,6 +86,14 @@ public: } + void SetData( const std::vector& aX, const std::vector& aY ) override + { + if( m_cursor ) + m_cursor->Update(); + + mpFXYVector::SetData( aX, aY ); + } + const std::vector& GetDataX() const { return m_xs;