354 // If we move down, we need to iterate the array in reverse order. |
354 // If we move down, we need to iterate the array in reverse order. |
355 const long start = up ? 0 : (objs.size() - 1); |
355 const long start = up ? 0 : (objs.size() - 1); |
356 const long end = up ? objs.size() : -1; |
356 const long end = up ? objs.size() : -1; |
357 const long incr = up ? 1 : -1; |
357 const long incr = up ? 1 : -1; |
358 QList<LDObject*> objsToCompile; |
358 QList<LDObject*> objsToCompile; |
359 LDFile* file = objs[0]->getFile(); |
359 LDDocument* file = objs[0]->getFile(); |
360 |
360 |
361 for (long i = start; i != end; i += incr) |
361 for (long i = start; i != end; i += incr) |
362 { LDObject* obj = objs[i]; |
362 { LDObject* obj = objs[i]; |
363 |
363 |
364 const long idx = obj->getIndex(), |
364 const long idx = obj->getIndex(), |