Kaydet (Commit) 69702bc5 authored tarafından Matteo Casalin's avatar Matteo Casalin

Simplify loop

Change-Id: I100344543a6008f6f466d0cc5716001e5b6c1ddd
üst 3fd369d9
......@@ -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)
......
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