From 69d7229845e9843258dce2847db9f85f2f6e5b0b Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Tue, 6 Aug 2019 22:15:55 +0200 Subject: Parameter float: add note regarding rounding issue --- src/extension/prefdialog/parameter-float.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/extension/prefdialog/parameter-float.cpp') diff --git a/src/extension/prefdialog/parameter-float.cpp b/src/extension/prefdialog/parameter-float.cpp index 0f60f8665..0e3fd9c35 100644 --- a/src/extension/prefdialog/parameter-float.cpp +++ b/src/extension/prefdialog/parameter-float.cpp @@ -110,6 +110,9 @@ float ParamFloat::set(float in, SPDocument * /*doc*/, Inkscape::XML::Node * /*no std::string ParamFloat::value_to_string() const { char value_string[G_ASCII_DTOSTR_BUF_SIZE]; + // TODO: Some strange rounding is going on here, resulting in parameter values quite different + // from the original string value. Needs some investigation to make it less bad. + // See also https://gitlab.gnome.org/GNOME/glib/issues/964 g_ascii_dtostr(value_string, G_ASCII_DTOSTR_BUF_SIZE, _value); return value_string; } -- cgit v1.2.3