瀏覽代碼

Fixed error: Would crash often if only one foreground color.

tags/0.3.4
tastytea 11 月之前
父節點
當前提交
211b0ba7b4
簽署人: tastytea <tastytea@tastytea.de> GPG 金鑰 ID: CFC39497F1B26E07
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -1
      src/identiconpp.cpp

+ 1
- 1
CMakeLists.txt 查看文件

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


+ 1
- 1
src/identiconpp.cpp 查看文件

@@ -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

Loading…
取消
儲存