sw/source/core/view/vdraw.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 6869da60961a6213fc961c2ece371c0f18038cde
Author:     Simon Chenery <simon_chen...@yahoo.com>
AuthorDate: Fri Mar 21 21:30:50 2025 +0100
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Sat Apr 19 22:53:13 2025 +0200

    tdf#145614 Convert #define FUZZY_EDGE to constexpr
    
    Change-Id: Iea10b1f370b7b6fb77670523c2499c2a7379ccb0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183212
    Tested-by: Jenkins
    Reviewed-by: David Gilbert <freedesk...@treblig.org>

diff --git a/sw/source/core/view/vdraw.cxx b/sw/source/core/view/vdraw.cxx
index 0a710b2c63e0..837ad92d4cb4 100644
--- a/sw/source/core/view/vdraw.cxx
+++ b/sw/source/core/view/vdraw.cxx
@@ -151,8 +151,6 @@ void SwViewShellImp::PaintLayer( const SdrLayerID _nLayerID,
 
 }
 
-#define FUZZY_EDGE 400
-
 bool SwViewShellImp::IsDragPossible( const Point &rPoint )
 {
     if ( !HasDrawView() )
@@ -175,6 +173,7 @@ bool SwViewShellImp::IsDragPossible( const Point &rPoint )
     else
         aRect = GetShell().GetLayout()->getFrameArea();
 
+    constexpr tools::Long FUZZY_EDGE = 400;
     aRect.AddTop   (- FUZZY_EDGE );
     aRect.AddBottom(  FUZZY_EDGE );
     aRect.AddLeft  (- FUZZY_EDGE );

Reply via email to