src/extprogs.cpp

changeset 484
5b5c77c7f3dd
parent 483
138b7c5c3c59
child 493
16766ac1bbd9
equal deleted inserted replaced
483:138b7c5c3c59 484:5b5c77c7f3dd
186 // ============================================================================= 186 // =============================================================================
187 // ----------------------------------------------------------------------------- 187 // -----------------------------------------------------------------------------
188 void writeColorGroup (const short colnum, str fname) { 188 void writeColorGroup (const short colnum, str fname) {
189 List<LDObject*> objects; 189 List<LDObject*> objects;
190 190
191 for (LDObject* obj : *LDFile::current()) { 191 for (LDObject* obj : LDFile::current()->objects()) {
192 if (obj->isColored() == false || obj->color() != colnum) 192 if (obj->isColored() == false || obj->color() != colnum)
193 continue; 193 continue;
194 194
195 objects << obj; 195 objects << obj;
196 } 196 }

mercurial