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 );