diff --git a/CMakeLists.txt b/CMakeLists.txt index abeacca..2ea7773 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/libxisf.cpp b/libxisf.cpp index 8d45289..6eed958 100644 --- a/libxisf.cpp +++ b/libxisf.cpp @@ -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);