1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 11d84de5628a6afaebdf85e09791221888e641f4 Mon Sep 17 00:00:00 2001
From: Mert Tumer <merttumer@outlook.com>
Date: Wed, 13 Jun 2018 17:32:15 -0700
Subject: Fix nan is not a member of std
---
src/lib/Multiplan.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/Multiplan.cpp b/src/lib/Multiplan.cpp
index 26ceca3..11f83c8 100644
--- a/src/lib/Multiplan.cpp
+++ b/src/lib/Multiplan.cpp
@@ -2222,7 +2222,7 @@ bool MultiplanParser::readSharedData(int pos, int cellType, Vec2i const &cellPos
f << "Nan" << libwps::readU8(input) << ",";
input->seek(7, librevenge::RVNG_SEEK_CUR);
content.m_contentType=content.C_NUMBER;
- content.setValue(std::nan(""));
+ content.setValue(nan(""));
}
break;
case 3:
@@ -2622,7 +2622,7 @@ bool MultiplanParser::sendCell(Vec2i const &cellPos, int p)
}
else if (type==2 && dSz==8)
{
- content.setValue(std::nan(""));
+ content.setValue(nan(""));
f << "Nan" << int(libwps::readU8(input)) << ",";
input->seek(7, librevenge::RVNG_SEEK_CUR);
}
--
2.17.1
|