Commit 4f816b7c authored by Boudewijn Rempt's avatar Boudewijn Rempt

Show a warning when editing curves created for a different colorspace

It's the best we can do now; we should label the curves, and only
reset the real color curves, and keep the virtual curves, but the
file format and the structure of the multichannel filter don't
really support that.

This breaks string freeze :-(

parent a9b68dbb
......@@ -28,6 +28,7 @@
#include <QComboBox>
#include <QDomDocument>
#include <QHBoxLayout>
#include <QMessageBox>
#include "KoChannelInfo.h"
#include "KoBasicHistogramProducers.h"
......@@ -382,6 +383,7 @@ void KisMultiChannelConfigWidget::setConfiguration(const KisPropertiesConfigurat
} else if (cfg->curves().size() > m_virtualChannels.size()) {
QMessageBox::warning(this, i18nc("@title:window", "Krita"), i18n("The current configuration was created for a different colorspace and cannot be used. All curves will be reset."));
warnKrita << "WARNING: trying to load a curve with invalid number of channels!";
warnKrita << "WARNING: expected:" << m_virtualChannels.size();
warnKrita << "WARNING: got:" << cfg->curves().size();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment