[Libreoffice-commits] core.git: svx/source

Gaurav Dhingra gauravdhingra.gxyd at gmail.com
Wed Dec 7 15:55:59 UTC 2016


 svx/source/svdraw/svdsnpv.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c52745f8a3743841a4de030928c61d22063dd8ec
Author: Gaurav Dhingra <gauravdhingra.gxyd at gmail.com>
Date:   Sat Dec 3 12:42:42 2016 +0530

    tdf#75280 Convert few inappropriate use of sal_uIntPtr to better integer types
    
    partial fix for Tdf#75280
    
    Change-Id: I81d78449b709c246289ebf6bf3e6cabf1198adcb
    Reviewed-on: https://gerrit.libreoffice.org/31579
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx
index 2129b24..bacf452 100644
--- a/svx/source/svdraw/svdsnpv.cxx
+++ b/svx/source/svdraw/svdsnpv.cxx
@@ -328,8 +328,8 @@ SdrSnap SdrSnapView::SnapPos(Point& rPnt, const SdrPageView* pPV) const
         a=y- ys     ; if (std::abs(a)<=my) { dy1=-a; if (std::abs(dy1)<std::abs(dy)) dy=dy1; } // right edge of paper
     }
     if (bOFrmSnap || bOPntSnap) {
-        sal_uIntPtr nMaxPointSnapCount=200;
-        sal_uIntPtr nMaxFrameSnapCount=200;
+        sal_uInt32 nMaxPointSnapCount=200;
+        sal_uInt32 nMaxFrameSnapCount=200;
 
         // go back to SdrIterMode::DeepNoGroups runthrough for snap to object comparisons
         SdrObjListIter aIter(*pPV->GetPage(),SdrIterMode::DeepNoGroups,true);


More information about the Libreoffice-commits mailing list