2 Commits

Author SHA1 Message Date
nou dafc26984e Fix issue with ColorFilterArray 2023-04-11 12:25:14 +02:00
nou f9731614c8 Fix error with USE_BUNDLED_LIBS 2023-04-09 10:34:15 +02:00
2 changed files with 42 additions and 44 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(libXISF VERSION 0.2.2 LANGUAGES CXX C)
project(libXISF VERSION 0.2.3 LANGUAGES CXX C)
include(CMakeDependentOption)
@@ -18,7 +18,6 @@ cmake_dependent_option(USE_BUNDLED_ZLIB "Use bundled Zlib" ON "USE_BUNDLED_LIBS"
find_package(PkgConfig REQUIRED)
if(USE_BUNDLED_LIBS)
if(USE_BUNDLED_LZ4)
list(APPEND THIRD_PARTY_SRC
lz4/lz4.c
@@ -59,7 +58,6 @@ if(USE_BUNDLED_LIBS)
else(USE_BUNDLED_ZLIB)
pkg_check_modules(ZLIB zlib IMPORTED_TARGET REQUIRED)
endif(USE_BUNDLED_ZLIB)
endif(USE_BUNDLED_LIBS)
add_library(XISF
bytearray.cpp
+1 -1
View File
@@ -912,7 +912,7 @@ void XISFWriterPrivate::writeImageElement(pugi::xml_node &node, const Image &ima
if(image._cfa.width && image._cfa.height)
{
pugi::xml_node cfa_node = node.append_child("ColorFilterArray");
pugi::xml_node cfa_node = image_node.append_child("ColorFilterArray");
cfa_node.append_attribute("pattern").set_value(image._cfa.pattern.c_str());
cfa_node.append_attribute("width").set_value(image._cfa.width);
cfa_node.append_attribute("height").set_value(image._cfa.height);