From a6662d8d2d7b499aa5c18fd725a189863b6d21fb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 23 Nov 2016 15:33:29 +0100 Subject: php-lessphp: add fix --- php-lessphp-pr626.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 php-lessphp-pr626.patch (limited to 'php-lessphp-pr626.patch') diff --git a/php-lessphp-pr626.patch b/php-lessphp-pr626.patch new file mode 100644 index 0000000..47c1a7a --- /dev/null +++ b/php-lessphp-pr626.patch @@ -0,0 +1,23 @@ +From 6cabd199faf47a2f38b70e3c98f563817b43273a Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 23 Nov 2016 15:20:43 +0100 +Subject: [PATCH 1/2] fix lib_luma + +--- + lessc.inc.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lessc.inc.php b/lessc.inc.php +index 2292f21..b639c3e 100644 +--- a/lessc.inc.php ++++ b/lessc.inc.php +@@ -1273,7 +1273,7 @@ protected function lib_contrast($args) { + + protected function lib_luma($color) { + $color = $this->coerceColor($color); +- return (0.2126 * $color[0] / 255) + (0.7152 * $color[1] / 255) + (0.0722 * $color[2] / 255); ++ return (0.2126 * $color[1] / 255) + (0.7152 * $color[2] / 255) + (0.0722 * $color[3] / 255); + } + + + -- cgit