[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Fri Jan 26 21:56:32 UTC 2018
sc/source/core/data/drwlayer.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 3edf52796ef62c1734f51011fd32d8dc269fbf2d
Author: Eike Rathke <erack at redhat.com>
Date: Fri Jan 26 22:54:50 2018 +0100
Move declaration to where it is used
Change-Id: Ibf650c3d38ff21cb03b5361f953423fd0d2195e6
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 4be458e21500..6ad031b952d7 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -2028,12 +2028,11 @@ bool ScDrawLayer::HasObjectsAnchoredInRange(ScRange& rRange)
SdrObjListIter aIter( *pPage, SdrIterMode::Flat );
SdrObject* pObject = aIter.Next();
- ScDrawObjData* pObjData;
while (pObject)
{
if (!dynamic_cast<SdrCaptionObj*>(pObject)) // Caption objects are handled differently
{
- pObjData = GetObjData(pObject);
+ ScDrawObjData* pObjData = GetObjData(pObject);
if (pObjData && rRange.In(pObjData->maStart)) // Object is in given range
return true;
}
More information about the Libreoffice-commits
mailing list