From dadf356c14cd74766225709ed2cf838525b5df91 Mon Sep 17 00:00:00 2001 From: BenceJanosSzabo <bence.janos.szabo@ericsson.com> Date: Tue, 25 Oct 2016 10:46:15 +0200 Subject: [PATCH] fractiondigits fix Change-Id: I20b7544a99ff28364f490b221afcf69658e14abc Signed-off-by: BenceJanosSzabo <bence.janos.szabo@ericsson.com> --- compiler2/XerAttributes.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler2/XerAttributes.cc b/compiler2/XerAttributes.cc index ce6238642..4e551f379 100644 --- a/compiler2/XerAttributes.cc +++ b/compiler2/XerAttributes.cc @@ -287,8 +287,10 @@ other.print("other"); element_ |= other.element_; embedValues_ |= other.embedValues_; form_ = other.form_; - has_fractionDigits_ = other.has_fractionDigits_; - fractionDigits_ = other.fractionDigits_; + if (other.has_fractionDigits_) { + has_fractionDigits_ = other.has_fractionDigits_; + fractionDigits_ = other.fractionDigits_; + } hex_ |= other.hex_; list_ |= other.list_; if (other.name_.kw_ != NamespaceSpecification::NO_MANGLING) { -- GitLab