Skip to content

Commit

Permalink
fix(ColorWidget): Remove switch default instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Aug 14, 2024
1 parent 6d69c5b commit 569e7aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgscolorwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ QgsColorWidget::ComponentUnit QgsColorWidget::componentUnit( ColorComponent comp
case QgsColorWidget::Black:
return ComponentUnit::Percent;

default:
case QgsColorWidget::Multiple:
case QgsColorWidget::Red:
case QgsColorWidget::Green:
case QgsColorWidget::Blue:
return ComponentUnit::Raw;
}
}
Expand Down

0 comments on commit 569e7aa

Please sign in to comment.