From 76e18ec5cbcb2ce1f7b106fc27a1bd42d92dccc6 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Mon, 1 Apr 2019 22:29:39 +0200 Subject: Replace IS_FINITE with std::isfinite (exists since C++11) --- src/style-internal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/style-internal.cpp') 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; } -- cgit v1.2.3