From a8db21319f2210d81e31964c7cd5fc91e87f884b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 28 May 2018 16:41:12 +0200 Subject: [PATCH] Spice Simulator: set correct scale for constant plots Fixes: lp:1772278 * https://bugs.launchpad.net/kicad/+bug/1772278 --- include/widgets/mathplot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/widgets/mathplot.h b/include/widgets/mathplot.h index 256522326e..2b7de65c41 100644 --- a/include/widgets/mathplot.h +++ b/include/widgets/mathplot.h @@ -748,8 +748,8 @@ public: if( m_minV == m_maxV ) { - m_minV = -1.0; - m_maxV = 1.0; + m_minV = m_minV - 1.0; + m_maxV = m_maxV + 1.0; } }