--- a/src/extprogs.cpp Sat Jul 13 21:21:33 2013 +0300 +++ b/src/extprogs.cpp Mon Jul 15 13:50:12 2013 +0300 @@ -160,7 +160,7 @@ void writeColorGroup (const short colnum, str fname) { vector<LDObject*> objects; - for (LDObject* obj : *g_curfile) { + for (LDObject* obj : *currentFile()) { if (obj->isColored() == false || obj->color() != colnum) continue; @@ -257,7 +257,7 @@ continue; } - g_curfile->addObject (obj); + currentFile()->addObject (obj); g_win->sel() << obj; }