diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-01 20:29:39 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-02 20:10:02 +0000 |
| commit | 76e18ec5cbcb2ce1f7b106fc27a1bd42d92dccc6 (patch) | |
| tree | 1c0d1155ddffee6be80a1dcefa6dbf1dd4388f32 /src/style-internal.cpp | |
| parent | Add new lib2geom dependency: "double-conversion" (diff) | |
| download | inkscape-76e18ec5cbcb2ce1f7b106fc27a1bd42d92dccc6.tar.gz inkscape-76e18ec5cbcb2ce1f7b106fc27a1bd42d92dccc6.zip | |
Replace IS_FINITE with std::isfinite (exists since C++11)
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index a1c2935be..beee8161d 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -234,7 +234,7 @@ SPILength::read( gchar const *str ) { gchar *e; /** \todo fixme: Move this to standard place (Lauris) */ value_tmp = g_ascii_strtod(str, &e); - if ( !IS_FINITE(value_tmp) ) { // fix for bug lp:935157 + if ( !std::isfinite(value_tmp) ) { // fix for bug lp:935157 return; } if ((gchar const *) e != str) { @@ -383,7 +383,7 @@ SPILength::merge( const SPIBase* const parent ) { * FIXME: Have separate ex ratio parameter. * Get x height from libnrtype or pango. */ - if (!IS_FINITE(value)) { + if (!std::isfinite(value)) { value = computed; unit = SP_CSS_UNIT_NONE; } |
