From 70d08a23644301520585a055df2cc2892cbf0b68 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 28 Jul 2018 18:36:51 +0200 Subject: [PATCH] Fix incorrect scaling factor to draw the page limits (GAL mode) --- common/worksheet_viewitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/worksheet_viewitem.cpp b/common/worksheet_viewitem.cpp index 1a970157c0..2d38b630f3 100644 --- a/common/worksheet_viewitem.cpp +++ b/common/worksheet_viewitem.cpp @@ -202,8 +202,8 @@ void WORKSHEET_VIEWITEM::draw( const WS_DRAW_ITEM_TEXT* aItem, GAL* aGal ) const void WORKSHEET_VIEWITEM::drawBorder( GAL* aGal ) const { VECTOR2D origin = VECTOR2D( 0.0, 0.0 ); - VECTOR2D end = VECTOR2D( m_pageInfo->GetWidthMils() * 25400, - m_pageInfo->GetHeightMils() * 25400 ); + VECTOR2D end = VECTOR2D( m_pageInfo->GetWidthMils() * m_mils2IUscalefactor, + m_pageInfo->GetHeightMils() * m_mils2IUscalefactor ); aGal->SetIsStroke( true ); // Use a gray color for the border color