From 44066aa47a8433b2745d43c42c3be8b5ff7d95d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Fri, 29 Sep 2023 13:27:15 +0200 Subject: [PATCH] [wip] wkt: fix -0 to return 0 --- src/detail/io/WktWriter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/detail/io/WktWriter.cpp b/src/detail/io/WktWriter.cpp index 3b8ba401..dba3369d 100644 --- a/src/detail/io/WktWriter.cpp +++ b/src/detail/io/WktWriter.cpp @@ -28,7 +28,10 @@ namespace impl { auto writeFT(std::ostream &s, const CGAL::Gmpq &ft) -> std::ostream & { - s << ft; + if (ft == -0.0) + s << 0; + else + s << ft; return s; }