/* * Copyright (c) 2006 Boudewijn Rempt resetProjection(); KisLayerSP child = layer->firstChild(); while (child) { child->accept(*this); child = child->nextSibling(); } layer->setDirty(); return true; } bool KisChangeProfileVisitor::visit(KisPaintLayer *layer) { if (!layer) return false; if (!layer->paintDevice()) return false; if (!layer->paintDevice()->colorSpace()) return false; KisColorSpace * cs = layer->paintDevice()->colorSpace(); if (cs == m_oldColorSpace) { layer->paintDevice()->setProfile(m_dstColorSpace->getProfile()); layer->setDirty(); } return true; } bool KisChangeProfileVisitor::visit(KisPartLayer *) { return true; } bool KisChangeProfileVisitor::visit(KisAdjustmentLayer * layer) { layer->resetCache(); layer->setDirty(); return true; } #endif // KIS_CHANGE_PROFILE_VISITOR_H_