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 } |