Kaydet (Commit) 3a9a754d authored tarafından Matteo Casalin's avatar Matteo Casalin

Expand macro that is used just once

Change-Id: I93078315c6113bbde630ab8a2cb6c11668c9d041
üst c647fff0
...@@ -90,9 +90,6 @@ ...@@ -90,9 +90,6 @@
using namespace com::sun::star; 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 ) SwFlyFrm *GetFlyFromMarked( const SdrMarkList *pLst, SwViewShell *pSh )
{ {
if ( !pLst ) if ( !pLst )
...@@ -201,7 +198,10 @@ bool SwFEShell::SelectObj( const Point& rPt, sal_uInt8 nFlag, SdrObject *pObj ) ...@@ -201,7 +198,10 @@ bool SwFEShell::SelectObj( const Point& rPt, sal_uInt8 nFlag, SdrObject *pObj )
} }
else 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(); const bool bRet = 0 != rMrkList.GetMarkCount();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment