From fa39c113727e4c53a58db78689eb7b30271ba54f Mon Sep 17 00:00:00 2001 From: peri4 Date: Tue, 2 Jun 2026 09:36:47 +0300 Subject: [PATCH] version 2.32.5 change Graphic cursor coordinates to 'g' format --- CMakeLists.txt | 2 +- libs/graphic/graphic.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ba909e..1199ca0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_policy(SET CMP0072 NEW) # FindOpenGL prefers GLVND by default project(QAD) set(QAD_MAJOR 2) set(QAD_MINOR 32) -set(QAD_REVISION 4) +set(QAD_REVISION 5) set(QAD_SUFFIX ) set(QAD_COMPANY SHS) set(QAD_DOMAIN org.SHS) diff --git a/libs/graphic/graphic.cpp b/libs/graphic/graphic.cpp index af3cf54..aa9ffc9 100644 --- a/libs/graphic/graphic.cpp +++ b/libs/graphic/graphic.cpp @@ -1849,7 +1849,7 @@ QString Graphic::pointCoords(QPointF point, bool x, bool y) { QString ret = "("; if (x) { if (axis_type_x == Numeric) - ret += QString::number(point.x(), 'f', 3); + ret += QString::number(point.x(), 'g', 6); else ret += #if QT_VERSION_MAJOR <= 5 @@ -1860,7 +1860,7 @@ QString Graphic::pointCoords(QPointF point, bool x, bool y) { } if (y) { if (ret.size() > 1) ret += " ; "; - ret += QString::number(point.y(), 'f', 3); + ret += QString::number(point.y(), 'g', 6); } ret += ")"; return ret;