diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-10-07 16:58:47 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-10-07 16:58:47 +0000 |
| commit | e1460e78ca4ad83949bfa989e10829a2f738b985 (patch) | |
| tree | e85842bf8747b0258ad038e29e7bcbf47efbfc98 /src/object/sp-object.cpp | |
| parent | sensible behavior when reading NaN values (diff) | |
| download | inkscape-e1460e78ca4ad83949bfa989e10829a2f738b985.tar.gz inkscape-e1460e78ca4ad83949bfa989e10829a2f738b985.zip | |
Fix for NaN checking
Diffstat (limited to 'src/object/sp-object.cpp')
| -rw-r--r-- | src/object/sp-object.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp index 4a9a347c1..7c6b6c28d 100644 --- a/src/object/sp-object.cpp +++ b/src/object/sp-object.cpp @@ -996,14 +996,6 @@ void SPObject::readAttr(gchar const *key) if (keyid != SP_ATTR_INVALID) { /* Retrieve the 'key' attribute from the object's XML representation */ gchar const *value = getRepr()->attribute(key); - if (value && - (!strcmp(value, "nan") - || !strcmp(value, "-nan") - || !strcmp(value, "NaN") - || !strcmp(value, "-NaN") - )) { - value = nullptr; - } setKeyValue(keyid, value); } |
