Skip to content

Commit

Permalink
add kParseFullPrecisionFlag to parser while formatting, to prevent pr…
Browse files Browse the repository at this point in the history
…ecision loss
  • Loading branch information
kapilratnani committed Oct 14, 2018
1 parent c1bd52e commit fae3b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NppJSONViewer/PluginDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void formatSelectedJSON() {
rapidjson::StringStream ss(curJSON);
rapidjson::Reader reader;

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

Expand Down
10 changes: 5 additions & 5 deletions NppJSONViewer/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FONT 8, "Ms Shell Dlg"
LTEXT "Author:", IDC_STATIC, 27, 21, 24, 8, SS_LEFT, WS_EX_LEFT
LTEXT "Kapil Ratnani", IDC_STATIC, 105, 21, 43, 8, SS_LEFT, WS_EX_LEFT
LTEXT "Version:", IDC_STATIC, 27, 35, 26, 8, SS_LEFT, WS_EX_LEFT
LTEXT "1.31", IDC_STATIC, 104, 35, 15, 9, SS_LEFT, WS_EX_LEFT
LTEXT "1.32", IDC_STATIC, 104, 35, 15, 9, SS_LEFT, WS_EX_LEFT
LTEXT "Licence:", IDC_STATIC, 27, 48, 28, 8, SS_LEFT, WS_EX_LEFT
LTEXT "GPL", IDC_STATIC, 104, 48, 15, 8, SS_LEFT, WS_EX_LEFT
LTEXT "Special thanks to:", IDC_STATIC, 27, 63, 58, 8, SS_LEFT, WS_EX_LEFT
Expand Down Expand Up @@ -53,8 +53,8 @@ FONT 8, "Ms Shell Dlg"
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
1 VERSIONINFO
FILEVERSION 1,31,0,0
PRODUCTVERSION 1,31,0,0
FILEVERSION 1,32,0,0
PRODUCTVERSION 1,32,0,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
Expand All @@ -68,11 +68,11 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
VALUE "Comments", "JSONViewer plugin for Notepad++"
VALUE "CompanyName", "Kapil Ratnani"
VALUE "FileDescription", "Notepad++ plugin"
VALUE "FileVersion", "1.31"
VALUE "FileVersion", "1.32"
VALUE "InternalName", "JSONViewer"
VALUE "OriginalFilename", "NPPJSONViewer.dll"
VALUE "ProductName", "JSONViewer plugin for Notepad++"
VALUE "ProductVersion", "1.31"
VALUE "ProductVersion", "1.32"
VALUE "SpecialBuild", "UNICODE"
}
}
Expand Down

0 comments on commit fae3b57

Please sign in to comment.