164 |
164 |
165 // ============================================================================= |
165 // ============================================================================= |
166 void writeColorGroup (const short colnum, str fname) { |
166 void writeColorGroup (const short colnum, str fname) { |
167 vector<LDObject*> objects; |
167 vector<LDObject*> objects; |
168 |
168 |
169 for (LDObject* obj : *currentFile()) { |
169 for (LDObject* obj : *LDOpenFile::current()) { |
170 if (obj->isColored() == false || obj->color() != colnum) |
170 if (obj->isColored() == false || obj->color() != colnum) |
171 continue; |
171 continue; |
172 |
172 |
173 objects << obj; |
173 objects << obj; |
174 } |
174 } |