[Libreoffice-commits] core.git: svx/source
Mark Hung
marklh9 at gmail.com
Sat Nov 12 03:21:22 UTC 2016
svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4ffb2ae4bb89346bf62c187693f6044846870c63
Author: Mark Hung <marklh9 at 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 <ci at libreoffice.org>
Reviewed-by: Mark Hung <marklh9 at 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 )
{
More information about the Libreoffice-commits
mailing list