217 // |
217 // |
218 void writeColorGroup (const int colnum, QString fname) |
218 void writeColorGroup (const int colnum, QString fname) |
219 { |
219 { |
220 LDObjectList objects; |
220 LDObjectList objects; |
221 |
221 |
222 for (LDObject* obj : getCurrentDocument()->getObjects()) |
222 for (LDObject* obj : getCurrentDocument()->objects()) |
223 { |
223 { |
224 if (obj->isColored() == false || obj->getColor() != colnum) |
224 if (obj->isColored() == false || obj->color() != colnum) |
225 continue; |
225 continue; |
226 |
226 |
227 objects << obj; |
227 objects << obj; |
228 } |
228 } |
229 |
229 |