diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-08 00:28:28 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-16 21:52:30 +0200 |
commit | 69702bc5248732f69734b1f387566e060543494b (patch) | |
tree | 8a5b17f48331e33b1a50bf983f6d9312be89f8b6 /svx | |
parent | 3fd369d93a00604b1c084a5b9ab1989df30e5d97 (diff) |
Simplify loop
Change-Id: I100344543a6008f6f466d0cc5716001e5b6c1ddd
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/engine3d/dragmt3d.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx index e1c2fb6f105a..9dda1b21e88b 100644 --- a/svx/source/engine3d/dragmt3d.cxx +++ b/svx/source/engine3d/dragmt3d.cxx @@ -54,9 +54,7 @@ E3dDragMethod::E3dDragMethod ( if(mbMoveFull) { // for non-visible 3D objects fallback to wireframe interaction - bool bInvisibleObjects(false); - - for(size_t nObjs = 0; !bInvisibleObjects && nObjs < nCnt; ++nObjs) + for(size_t nObjs = 0; nObjs < nCnt; ++nObjs) { E3dObject* pE3dObj = dynamic_cast< E3dObject* >(rMark.GetMark(nObjs)->GetMarkedSdrObj()); @@ -64,15 +62,11 @@ E3dDragMethod::E3dDragMethod ( { if(!pE3dObj->HasFillStyle() && !pE3dObj->HasLineStyle()) { - bInvisibleObjects = true; + mbMoveFull = false; + break; } } } - - if(bInvisibleObjects) - { - mbMoveFull = false; - } } for(size_t nObjs = 0; nObjs < nCnt; ++nObjs) |