summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-05-03 19:58:38 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-05-03 22:32:02 +0200
commit3a9a754db00586e57021a2fd2202f0957d906d06 (patch)
tree849d4602b7c3c5555626c3fa2b6f6cadf42c1da8
parentc647fff0dbeb2bdcc6b79456988b1c514c79d8d8 (diff)
Expand macro that is used just once
Change-Id: I93078315c6113bbde630ab8a2cb6c11668c9d041
-rw-r--r--sw/source/core/frmedt/feshview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 9ba3d34cb2e9..249f718d0c66 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -90,9 +90,6 @@
using namespace com::sun::star;
-// tolerance limit of Drawing-SS
-#define MINMOVE ((sal_uInt16)GetOut()->PixelToLogic(Size(Imp()->GetDrawView()->GetMarkHdlSizePixel()/2,0)).Width())
-
SwFlyFrm *GetFlyFromMarked( const SdrMarkList *pLst, SwViewShell *pSh )
{
if ( !pLst )
@@ -201,7 +198,10 @@ bool SwFEShell::SelectObj( const Point& rPt, sal_uInt8 nFlag, SdrObject *pObj )
}
else
{
- pDView->MarkObj( rPt, MINMOVE, bAddSelect, bEnterGroup );
+ // tolerance limit of Drawing-SS
+ const auto nHdlSizePixel = Imp()->GetDrawView()->GetMarkHdlSizePixel();
+ const short nMinMove = static_cast<short>(GetOut()->PixelToLogic(Size(nHdlSizePixel/2, 0)).Width());
+ pDView->MarkObj( rPt, nMinMove, bAddSelect, bEnterGroup );
}
const bool bRet = 0 != rMrkList.GetMarkCount();