diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-06 20:15:55 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:39 +0000 |
| commit | 69d7229845e9843258dce2847db9f85f2f6e5b0b (patch) | |
| tree | 27004f9fe1ea7d133eb3a73386b4949fbf13bc5b /src/extension/prefdialog/parameter-float.cpp | |
| parent | Optimize parameter string generation (diff) | |
| download | inkscape-69d7229845e9843258dce2847db9f85f2f6e5b0b.tar.gz inkscape-69d7229845e9843258dce2847db9f85f2f6e5b0b.zip | |
Parameter float: add note regarding rounding issue
Diffstat (limited to 'src/extension/prefdialog/parameter-float.cpp')
| -rw-r--r-- | src/extension/prefdialog/parameter-float.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
