Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_image.cc
Show First 20 Lines • Show All 879 Lines • ▼ Show 20 Line(s) | 873 | { | |||
---|---|---|---|---|---|
880 | undoAdapter()->endMacro(); | 880 | undoAdapter()->endMacro(); | ||
881 | 881 | | |||
882 | setModified(); | 882 | setModified(); | ||
883 | } | 883 | } | ||
884 | 884 | | |||
885 | void KisImage::setProjectionColorSpace(const KoColorSpace * colorSpace) | 885 | void KisImage::setProjectionColorSpace(const KoColorSpace * colorSpace) | ||
886 | { | 886 | { | ||
887 | m_d->colorSpace = colorSpace; | 887 | m_d->colorSpace = colorSpace; | ||
888 | assignImageProfile(colorSpace->profile()); | ||||
888 | m_d->rootLayer->resetCache(); | 889 | m_d->rootLayer->resetCache(); | ||
889 | m_d->signalRouter.emitNotification(ColorSpaceChangedSignal); | 890 | m_d->signalRouter.emitNotification(ColorSpaceChangedSignal); | ||
890 | } | 891 | } | ||
891 | 892 | | |||
892 | const KoColorSpace * KisImage::colorSpace() const | 893 | const KoColorSpace * KisImage::colorSpace() const | ||
893 | { | 894 | { | ||
894 | return m_d->colorSpace; | 895 | return m_d->colorSpace; | ||
895 | } | 896 | } | ||
▲ Show 20 Lines • Show All 797 Lines • Show Last 20 Lines |