From 877d8ffc0467426f9dccdc735c7b2c513f7996ba Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Thu, 2 Oct 2025 15:31:35 +0300 Subject: [PATCH] Match the order to XSD schema IB-8623 Signed-off-by: Raul Metsma --- src/SignatureXAdES_B.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SignatureXAdES_B.cpp b/src/SignatureXAdES_B.cpp index f84d870af..b5deb23b8 100644 --- a/src/SignatureXAdES_B.cpp +++ b/src/SignatureXAdES_B.cpp @@ -726,14 +726,14 @@ void SignatureXAdES_B::setSignatureProductionPlace(string_view name, auto signatureProductionPlace = signedSignatureProperties() + name.data(); if(!city.empty()) signatureProductionPlace + "City" = city; + if(name == "SignatureProductionPlaceV2" && !streetAddress.empty()) + signatureProductionPlace + "StreetAddress" = streetAddress; if(!stateOrProvince.empty()) signatureProductionPlace + "StateOrProvince" = stateOrProvince; if(!postalCode.empty()) signatureProductionPlace + "PostalCode" = postalCode; if(!countryName.empty()) signatureProductionPlace + "CountryName" = countryName; - if(name == "SignatureProductionPlaceV2" && !streetAddress.empty()) - signatureProductionPlace + "StreetAddress" = streetAddress; } /**