Skip to content

Commit

Permalink
util/color/predefinedcolorsset: Return noColor only as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Mar 1, 2020
1 parent af9e386 commit 09d2383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/color/predefinedcolorsset.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ class PredefinedColorsSet final {
};

PredefinedColorPointer predefinedColorFromRgbColor(mixxx::RgbColor::optional_t color) const {
if (!color) {
return noColor;
if (color) {
return predefinedColorFromRgbColor(*color);
}
return predefinedColorFromRgbColor(*color);
return noColor;
};

// The default color representation, i.e. maps each predefined color to its default Rgba.
Expand Down

0 comments on commit 09d2383

Please sign in to comment.