diff -r 248296088f2c -r 7ff483614aa1 src/extprogs.cpp --- a/src/extprogs.cpp Mon Jul 15 22:32:23 2013 +0300 +++ b/src/extprogs.cpp Tue Jul 16 01:33:11 2013 +0300 @@ -166,7 +166,7 @@ void writeColorGroup (const short colnum, str fname) { vector objects; - for (LDObject* obj : *currentFile()) { + for (LDObject* obj : *LDOpenFile::current()) { if (obj->isColored() == false || obj->color() != colnum) continue; @@ -263,7 +263,7 @@ continue; } - currentFile()->addObject (obj); + LDOpenFile::current()->addObject (obj); g_win->sel() << obj; }