From b848a424e80aed1911eae9fb2297ca058506e223 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 15 Feb 2019 15:35:31 +0100 Subject: [PATCH] minor fix --- common/preview_items/ruler_item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/preview_items/ruler_item.cpp b/common/preview_items/ruler_item.cpp index 21c24da43b..f196f1b6d8 100644 --- a/common/preview_items/ruler_item.cpp +++ b/common/preview_items/ruler_item.cpp @@ -238,8 +238,8 @@ void RULER_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const auto& gal = *aView->GetGAL(); auto rs = static_cast( aView->GetPainter()->GetSettings() ); - const auto origin = m_geomMgr.GetOrigin(); - const auto end = m_geomMgr.GetEnd(); + VECTOR2D origin = m_geomMgr.GetOrigin(); + VECTOR2D end = m_geomMgr.GetEnd(); gal.SetLineWidth( 1.0 ); gal.SetIsStroke( true );