app: make LCH lightness select-criterion faster

babl already has a faster path for getting L only, than going
through LCH.
This commit is contained in:
Ell 2017-05-09 19:30:43 -04:00
parent 465eba3260
commit b5974d3457
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ choose_format (GeglBuffer *buffer,
break;
case GIMP_SELECT_CRITERION_LCH_L:
format = babl_format ("CIE L alpha float");
break;
case GIMP_SELECT_CRITERION_LCH_C:
case GIMP_SELECT_CRITERION_LCH_H:
format = babl_format ("CIE LCH(ab) alpha float");