diff options
author | Mark Hung <marklh9@gmail.com> | 2016-11-06 13:04:44 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2016-11-12 03:20:58 +0000 |
commit | 4ffb2ae4bb89346bf62c187693f6044846870c63 (patch) | |
tree | 1e0836f9fcf4c2b853aa55ec8af056debf14016c /svx/source/customshapes | |
parent | a39a2d28acb7f6034379a3c7ad47974f9c703fb6 (diff) |
svx: prevent customshape handles go far away when adjusting.
Change-Id: I4d1efd52320093a8edf4a5b7b1032a0754275f39
Reviewed-on: https://gerrit.libreoffice.org/30604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index bfe5f520c04b..14bf483a4623 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -1301,13 +1301,13 @@ bool EnhancedCustomShape2d::SetHandleControllerPosition( const sal_uInt32 nIndex { nFirstAdjustmentValue = aHandle.nRefX; fPos1 *= 100000.0; - fPos1 /= nCoordWidth; + fPos1 /= fWidth; } if ( aHandle.nFlags & HandleFlags::REFY ) { nSecondAdjustmentValue = aHandle.nRefY; fPos2 *= 100000.0; - fPos2 /= nCoordHeight; + fPos2 /= fHeight; } if ( nFirstAdjustmentValue >= 0 ) { |