[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Sat Feb 24 22:40:22 UTC 2018


 starmath/source/accessibility.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit e1771058ebc4efc58515ffa60250843274990bac
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Fri Feb 23 18:48:39 2018 +0900

    starmath: Adjusting by 0 is the same as doing nothing
    
    Change-Id: I417c67ca8be458befff4ff3151404fe3833e7582
    Reviewed-on: https://gerrit.libreoffice.org/50227
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 59ab5412c806..22d5af1c38b1 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -482,7 +482,6 @@ awt::Rectangle SAL_CALL SmGraphicAccessible::getCharacterBounds( sal_Int32 nInde
             // get appropriate rectangle
             Point aOffset(pNode->GetTopLeft() - pTree->GetTopLeft());
             Point aTLPos (pWin->GetFormulaDrawPos() + aOffset);
-            aTLPos.AdjustX( -0 );
             Size  aSize (pNode->GetSize());
 
             long* pXAry = new long[ aNodeText.getLength() ];
@@ -542,7 +541,6 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoin
             // get appropriate rectangle
             Point   aOffset( pNode->GetTopLeft() - pTree->GetTopLeft() );
             Point   aTLPos ( aOffset );
-            aTLPos.AdjustX( -0 );
             Size  aSize( pNode->GetSize() );
 
             tools::Rectangle aRect( aTLPos, aSize );


More information about the Libreoffice-commits mailing list