From cd3d26b7edbce67805259a71e4118223e02ebdd4 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Fri, 18 Jul 2014 18:21:12 +0200 Subject: vcl consitent use of long for corrdinate most of length in vcl are calculated in 'long' but array of X position tend to be in sal_Int32. As a prep work to be able to support 'double' as the base type of Device Coordinate, harmonize the use of 'long' for non-float coordinate. Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323 --- starmath/source/accessibility.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 5032a2ef400a..a037861ea704 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -527,7 +527,7 @@ awt::Rectangle SAL_CALL SmGraphicAccessible::getCharacterBounds( sal_Int32 nInde aTLPos.X() -= 0; Size aSize (pNode->GetSize()); - sal_Int32 *pXAry = new sal_Int32[ aNodeText.getLength() ]; + long* pXAry = new long[ aNodeText.getLength() ]; pWin->SetFont( pNode->GetFont() ); pWin->GetTextArray( aNodeText, pXAry, 0, aNodeText.getLength() ); aTLPos.X() += nNodeIndex > 0 ? pXAry[nNodeIndex - 1] : 0; @@ -601,7 +601,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoin long nNodeX = pNode->GetLeft(); - sal_Int32 *pXAry = new sal_Int32[ aTxt.getLength() ]; + long* pXAry = new long[ aTxt.getLength() ]; pWin->SetFont( pNode->GetFont() ); pWin->GetTextArray( aTxt, pXAry, 0, aTxt.getLength() ); for (sal_Int32 i = 0; i < aTxt.getLength() && nRes == -1; ++i) -- cgit