summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/paraview/files/paraview-5.4.1-jsoncpp_1.8.4.patch')
-rw-r--r--sci-visualization/paraview/files/paraview-5.4.1-jsoncpp_1.8.4.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sci-visualization/paraview/files/paraview-5.4.1-jsoncpp_1.8.4.patch b/sci-visualization/paraview/files/paraview-5.4.1-jsoncpp_1.8.4.patch
new file mode 100644
index 00000000000..b4b64e94eef
--- /dev/null
+++ b/sci-visualization/paraview/files/paraview-5.4.1-jsoncpp_1.8.4.patch
@@ -0,0 +1,17 @@
+diff --git a/ParaViewCore/ServerManager/Core/vtkSMSettings.cxx b/ParaViewCore/ServerManager/Core/vtkSMSettings.cxx
+index b6e2b55..d27ad9d 100644
+--- a/ParaViewCore/ServerManager/Core/vtkSMSettings.cxx
++++ b/ParaViewCore/ServerManager/Core/vtkSMSettings.cxx
+@@ -788,7 +788,10 @@ public:
+ this->GetSettingBelowPriority(propertySettingCString, highestPriority);
+ if (lowerPriorityValue.isNull())
+ {
+- if (!proxyValue.removeMember(property->GetXMLName()).isNull())
++ // Allocated as done in Json::Value removeMember(const char* key).
++ Json::Value removedValue;
++ if (proxyValue.removeMember(property->GetXMLName(), &removedValue) &&
++ !removedValue.isNull())
+ {
+ this->Modified();
+ }
+