--- a/src/guiutilities.cpp Mon Aug 31 23:36:08 2015 +0300 +++ b/src/guiutilities.cpp Sat Sep 05 23:03:24 2015 +0300 @@ -56,7 +56,7 @@ { QMap<LDColor, int> counts; - for (LDObject* obj : CurrentDocument()->objects()) + for (LDObject* obj : currentDocument()->objects()) { if (not obj->isColored() or not obj->color().isValid()) continue;