src/extprogs.cpp

changeset 388
7ff483614aa1
parent 387
248296088f2c
child 402
ec95fc95e5f3
equal deleted inserted replaced
387:248296088f2c 388:7ff483614aa1
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 }
261 if (!obj->isScemantic()) { 261 if (!obj->isScemantic()) {
262 delete obj; 262 delete obj;
263 continue; 263 continue;
264 } 264 }
265 265
266 currentFile()->addObject (obj); 266 LDOpenFile::current()->addObject (obj);
267 g_win->sel() << obj; 267 g_win->sel() << obj;
268 } 268 }
269 269
270 g_win->fullRefresh(); 270 g_win->fullRefresh();
271 } 271 }

mercurial