Fixed error: Would crash often if only one foreground color.
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
f891679884
commit
211b0ba7b4
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.2)
|
cmake_minimum_required (VERSION 3.2)
|
||||||
project(identiconpp
|
project(identiconpp
|
||||||
VERSION 0.3.3
|
VERSION 0.3.4
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ Magick::Color Identiconpp::get_color(const uint16_t firstbit,
|
||||||
// a power of 2.
|
// a power of 2.
|
||||||
if (bits > (_foreground.size() - 1))
|
if (bits > (_foreground.size() - 1))
|
||||||
{
|
{
|
||||||
bits -= (_foreground.size() - 1);
|
bits -= _foreground.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lookup und set color
|
// Lookup und set color
|
||||||
|
|
Loading…
Reference in New Issue