svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4ffb2ae4bb89346bf62c187693f6044846870c63 Author: Mark Hung <mark...@gmail.com> Date: Sun Nov 6 13:04:44 2016 +0800 svx: prevent customshape handles go far away when adjusting. Change-Id: I4d1efd52320093a8edf4a5b7b1032a0754275f39 Reviewed-on: https://gerrit.libreoffice.org/30604 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Mark Hung <mark...@gmail.com> diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index bfe5f52..14bf483 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 ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits