Fix incorrect scaling factor to draw the page limits (GAL mode)

This commit is contained in:
jean-pierre charras 2018-07-28 18:36:51 +02:00
parent d73db8c73a
commit 70d08a2364
1 changed files with 2 additions and 2 deletions

View File

@ -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