Commit 82cfd3e7 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add an assert to some incomplete code in KisMetaData::Value

It looks like the code has either bitrot or is incomplete,
regexp is executed, but the result is never user and no value
is returned from the function
parent fb282277
......@@ -173,6 +173,11 @@ bool Value::setVariant(const QVariant& variant)
case Rational: {
QRegExp rx("([^\\/]*)\\/([^\\/]*)");
// TODO: erm... did someone forgot to write actual code here?
// for now just safe assert and return a failure
KIS_SAFE_ASSERT_RECOVER_NOOP(0 && "Rational metadata values are not implemented!");
return false;
case KisMetaData::Value::Variant: {
if (d->value.variant->type() == variant.type()) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment