Skip to content

Commit

Permalink
util/color/predefinedcolorsset: Add warning if no color was found
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Feb 29, 2020
1 parent d2942e3 commit b582613
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/color/predefinedcolorsset.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class PredefinedColorsSet final {
return color;
}
}
qWarning() << "No color matches name" << name;
return noColor;
};

Expand All @@ -108,6 +109,7 @@ class PredefinedColorsSet final {
return color;
}
}
qWarning() << "No color matches id" << iId;
return noColor;
};

Expand All @@ -118,6 +120,7 @@ class PredefinedColorsSet final {
break;
}
}
qWarning() << "No color matches RgbColor" << color;
return noColor;
};

Expand Down

0 comments on commit b582613

Please sign in to comment.