[Libreoffice-commits] core.git: svx/source
Miklos Vajna
vmiklos at collabora.co.uk
Sat Mar 7 02:52:24 PST 2015
svx/source/svdraw/svdhdl.cxx | 60 +++++++++++++++++++++----------------------
1 file changed, 30 insertions(+), 30 deletions(-)
New commits:
commit 554bfc1dd106474cdbe8d7265e2b1223ccb8f06b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Sat Mar 7 10:02:44 2015 +0100
SdrHdlList: fix indentation in IsHdlListHit() and GetHdl()
Change-Id: Icc59bfc612903d993fb4b091a28efe23e366475f
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index b7e4316..a7ddf84 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -2165,40 +2165,40 @@ void SdrHdlList::AddHdl(SdrHdl* pHdl, bool bAtBegin)
SdrHdl* SdrHdlList::IsHdlListHit(const Point& rPnt, bool bBack, bool bNext, SdrHdl* pHdl0) const
{
- SdrHdl* pRet=NULL;
- const size_t nAnz=GetHdlCount();
- size_t nNum=bBack ? 0 : nAnz;
- while ((bBack ? nNum<nAnz : nNum>0) && pRet==NULL)
- {
- if (!bBack)
- nNum--;
- SdrHdl* pHdl=GetHdl(nNum);
- if (bNext)
- {
- if (pHdl==pHdl0)
- bNext=false;
- }
- else
- {
- if (pHdl->IsHdlHit(rPnt))
- pRet=pHdl;
- }
- if (bBack)
- nNum++;
- }
- return pRet;
+ SdrHdl* pRet=NULL;
+ const size_t nAnz=GetHdlCount();
+ size_t nNum=bBack ? 0 : nAnz;
+ while ((bBack ? nNum<nAnz : nNum>0) && pRet==NULL)
+ {
+ if (!bBack)
+ nNum--;
+ SdrHdl* pHdl=GetHdl(nNum);
+ if (bNext)
+ {
+ if (pHdl==pHdl0)
+ bNext=false;
+ }
+ else
+ {
+ if (pHdl->IsHdlHit(rPnt))
+ pRet=pHdl;
+ }
+ if (bBack)
+ nNum++;
+ }
+ return pRet;
}
SdrHdl* SdrHdlList::GetHdl(SdrHdlKind eKind1) const
{
- SdrHdl* pRet=NULL;
- for (size_t i=0; i<GetHdlCount() && pRet==NULL; ++i)
- {
- SdrHdl* pHdl=GetHdl(i);
- if (pHdl->GetKind()==eKind1)
- pRet=pHdl;
- }
- return pRet;
+ SdrHdl* pRet=NULL;
+ for (size_t i=0; i<GetHdlCount() && pRet==NULL; ++i)
+ {
+ SdrHdl* pHdl=GetHdl(i);
+ if (pHdl->GetKind()==eKind1)
+ pRet=pHdl;
+ }
+ return pRet;
}
SdrCropHdl::SdrCropHdl(
More information about the Libreoffice-commits
mailing list