summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-02-23 18:48:39 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2018-02-24 23:40:01 +0100
commite1771058ebc4efc58515ffa60250843274990bac (patch)
treec8b8d1246a7f2748f037d7b9b799e1be2650574d /starmath
parent95bee23dffe87e36eaa7a58ba8aca8434bf01007 (diff)
starmath: Adjusting by 0 is the same as doing nothing
Change-Id: I417c67ca8be458befff4ff3151404fe3833e7582 Reviewed-on: https://gerrit.libreoffice.org/50227 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/accessibility.cxx2
1 files changed, 0 insertions, 2 deletions
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 );