1
0
Fork 0

Fixed error: Would crash often if only one foreground color.
the build was successful Details

Dieser Commit ist enthalten in:
tastytea 2018-12-28 01:40:56 +01:00
Ursprung f891679884
Commit 211b0ba7b4
Signiert von: tastytea
GPG-Schlüssel-ID: CFC39497F1B26E07
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(identiconpp
VERSION 0.3.3
VERSION 0.3.4
LANGUAGES CXX
)

Datei anzeigen

@ -133,7 +133,7 @@ Magick::Color Identiconpp::get_color(const uint16_t firstbit,
// a power of 2.
if (bits > (_foreground.size() - 1))
{
bits -= (_foreground.size() - 1);
bits -= _foreground.size();
}
// Lookup und set color