summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmrkv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 14:42:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-04 08:47:43 +0200
commit33b150bbd636ab23ebf50a5301034f3a551f3793 (patch)
treeda8b06bfbdfbcadffbf11d54049db2a3fb4463fc /svx/source/svdraw/svdmrkv.cxx
parente0c64cbeaf458cabcf8f4ac7c8aac4cd1896273c (diff)
rename nPgAnz->nPgCount
Change-Id: I4cbc74ed4488c06feaa8b8ab62496fac77ab3aa6 Reviewed-on: https://gerrit.libreoffice.org/40739 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdmrkv.cxx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 938ce9e60370..5f47639ba74d 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1816,26 +1816,26 @@ SdrObject* SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrPageView*& rpP
if(pPV)
{
SdrPage* pPage=pPV->GetPage();
- sal_uInt16 nPgAnz=1;
+ sal_uInt16 nPgCount=1;
if(bMasters && pPage->TRG_HasMasterPage())
{
- nPgAnz++;
+ nPgCount++;
}
bool bExtraPassForWholePage=bWholePage && pPage!=pPV->GetObjList();
- if (bExtraPassForWholePage) nPgAnz++; // First search in AktObjList, then on the entire page
- sal_uInt16 nPgNum=bBack ? 0 : nPgAnz;
- while (pHitObj==nullptr && (bBack ? nPgNum<nPgAnz : nPgNum>0)) {
+ if (bExtraPassForWholePage) nPgCount++; // First search in AktObjList, then on the entire page
+ sal_uInt16 nPgNum=bBack ? 0 : nPgCount;
+ while (pHitObj==nullptr && (bBack ? nPgNum<nPgCount : nPgNum>0)) {
SdrSearchOptions nTmpOptions=nOptions;
if (!bBack) nPgNum--;
const SdrLayerIDSet* pMVisLay=nullptr;
SdrObjList* pObjList=nullptr;
if (pbHitPassDirect!=nullptr) *pbHitPassDirect = true;
- if (nPgNum>=nPgAnz-1 || (bExtraPassForWholePage && nPgNum>=nPgAnz-2))
+ if (nPgNum>=nPgCount-1 || (bExtraPassForWholePage && nPgNum>=nPgCount-2))
{
pObjList=pPV->GetObjList();
- if (bExtraPassForWholePage && nPgNum==nPgAnz-2) {
+ if (bExtraPassForWholePage && nPgNum==nPgCount-2) {
pObjList=pPage;
if (pbHitPassDirect!=nullptr) *pbHitPassDirect = false;
}