diff --git a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx index 5273699f57ab..804b8e7d12ca 100644 --- a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx +++ b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx @@ -82,11 +82,19 @@ void printUnoValue( out << *o3tl::forceAccess(value); break; case css::uno::TypeClass_FLOAT: + { + std::ios_base::fmtflags origfmt = out.flags(); out << std::uppercase << *o3tl::forceAccess(value); + out.setf(origfmt); break; + } case css::uno::TypeClass_DOUBLE: + { + std::ios_base::fmtflags origfmt = out.flags(); out << std::uppercase << *o3tl::forceAccess(value); + out.setf(origfmt); break; + } case css::uno::TypeClass_CHAR: { std::ios_base::fmtflags origfmt = out.flags();