diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2019-03-19 20:10:12 +0100 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2019-03-21 15:42:34 +0100 |
commit | 1ee8547003e50e212c00df1f8d2ec3f6fc50f819 (patch) | |
tree | f17c373e8ce4fe97d8fe118981d83186b93ec158 /svx/source | |
parent | 05f5c18959cb86c7893b4a2bb45cce52f1f58c53 (diff) |
tdf#124212 make adjustment handle work always
In method SetHandleControllerPosition() all transformations are
reversed to get the coordinates in shape inner coordinate system
from the outer position. The error was, that the first
transformation, the move in method GetPoint was forgotten. In case
of default viewBox '0 0 21600 21600' it is not visible. But the
error is noticeable, if left or top do not equal zero.
Change-Id: Icc3f4f2c603826151c95b8b9eea5030fb5805d67
Reviewed-on: https://gerrit.libreoffice.org/69439
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'svx/source')
-rwxr-xr-x[-rw-r--r--] | svx/source/customshapes/EnhancedCustomShape2d.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index bc143c47c971..b8b859f7b82e 100644..100755 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -1223,6 +1223,9 @@ bool EnhancedCustomShape2d::SetHandleControllerPosition( const sal_uInt32 nIndex double fPos2 = aP.Y(); //( bFlipV ) ? aLogicRect.GetHeight() -aP.Y() : aP.Y(); fPos1 = !basegfx::fTools::equalZero(fXScale) ? (fPos1 / fXScale) : SAL_MAX_INT32; fPos2 = !basegfx::fTools::equalZero(fYScale) ? (fPos2 / fYScale) : SAL_MAX_INT32; + // revert -nCoordLeft and -nCoordTop aus GetPoint() + fPos1 += nCoordLeft; + fPos2 += nCoordTop; // Used for scaling the adjustment values based on handle positions double fWidth; |