Skip to content

Commit fae3b57

Browse files
committed
add kParseFullPrecisionFlag to parser while formatting, to prevent precision loss
1 parent c1bd52e commit fae3b57

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

NppJSONViewer/PluginDefinition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void formatSelectedJSON() {
234234
rapidjson::StringStream ss(curJSON);
235235
rapidjson::Reader reader;
236236

237-
reader.Parse(ss, pw);
237+
reader.Parse<rapidjson::kParseFullPrecisionFlag >(ss, pw);
238238
const char* fJson = sb.GetString();
239239
::SendMessage(curScintilla, SCI_REPLACESEL, 0, (LPARAM)fJson);
240240

NppJSONViewer/resource.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FONT 8, "Ms Shell Dlg"
2525
LTEXT "Author:", IDC_STATIC, 27, 21, 24, 8, SS_LEFT, WS_EX_LEFT
2626
LTEXT "Kapil Ratnani", IDC_STATIC, 105, 21, 43, 8, SS_LEFT, WS_EX_LEFT
2727
LTEXT "Version:", IDC_STATIC, 27, 35, 26, 8, SS_LEFT, WS_EX_LEFT
28-
LTEXT "1.31", IDC_STATIC, 104, 35, 15, 9, SS_LEFT, WS_EX_LEFT
28+
LTEXT "1.32", IDC_STATIC, 104, 35, 15, 9, SS_LEFT, WS_EX_LEFT
2929
LTEXT "Licence:", IDC_STATIC, 27, 48, 28, 8, SS_LEFT, WS_EX_LEFT
3030
LTEXT "GPL", IDC_STATIC, 104, 48, 15, 8, SS_LEFT, WS_EX_LEFT
3131
LTEXT "Special thanks to:", IDC_STATIC, 27, 63, 58, 8, SS_LEFT, WS_EX_LEFT
@@ -53,8 +53,8 @@ FONT 8, "Ms Shell Dlg"
5353
//
5454
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
5555
1 VERSIONINFO
56-
FILEVERSION 1,31,0,0
57-
PRODUCTVERSION 1,31,0,0
56+
FILEVERSION 1,32,0,0
57+
PRODUCTVERSION 1,32,0,0
5858
FILEOS VOS__WINDOWS32
5959
FILETYPE VFT_DLL
6060
FILESUBTYPE VFT2_UNKNOWN
@@ -68,11 +68,11 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
6868
VALUE "Comments", "JSONViewer plugin for Notepad++"
6969
VALUE "CompanyName", "Kapil Ratnani"
7070
VALUE "FileDescription", "Notepad++ plugin"
71-
VALUE "FileVersion", "1.31"
71+
VALUE "FileVersion", "1.32"
7272
VALUE "InternalName", "JSONViewer"
7373
VALUE "OriginalFilename", "NPPJSONViewer.dll"
7474
VALUE "ProductName", "JSONViewer plugin for Notepad++"
75-
VALUE "ProductVersion", "1.31"
75+
VALUE "ProductVersion", "1.32"
7676
VALUE "SpecialBuild", "UNICODE"
7777
}
7878
}

0 commit comments

Comments
 (0)