fix SpotColor handling in HTML

As the spot color array contains the user defined spotcolors provided by AddColor() we need to use the original color name here (as stored in $hcolor) and not the flattened one.

Example for usage <span style="color:SPOTCOLOR 15/5;">Your text here</span>
This commit is contained in:
Florian Schaeffer 2018-11-15 10:54:44 +01:00 committed by GitHub
parent 367241059c
commit 14b1dee166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,7 +358,7 @@ class TCPDF_COLORS {
$color_code = self::$webcolor[$color];
} else {
// spot color
$returncolor = self::getSpotColor($color, $spotc);
$returncolor = self::getSpotColor($hcolor, $spotc);
if ($returncolor === false) {
$returncolor = $defcol;
}