From dafc26984e4518c0174b3132c5ce275fc141eb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Tue, 11 Apr 2023 12:25:14 +0200 Subject: [PATCH] Fix issue with ColorFilterArray --- CMakeLists.txt | 2 +- libxisf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);