File: 0097-Fix-GeoJSON-string-reading.patch

package info (click to toggle)
tilemaker 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,488 kB
  • sloc: cpp: 29,461; ansic: 12,510; makefile: 229; ruby: 77; sh: 43
file content (25 lines) | stat: -rw-r--r-- 995 bytes parent folder | download
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
From 16c29550d999fd10286d5139fb407d2421d15ee9 Mon Sep 17 00:00:00 2001
From: systemed <richard@systemeD.net>
Date: Mon, 9 Feb 2026 18:43:33 +0000
Subject: Fix GeoJSON string reading

---
 src/geojson_processor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/geojson_processor.cpp b/src/geojson_processor.cpp
index 6a55751..9cb0ddf 100644
--- a/src/geojson_processor.cpp
+++ b/src/geojson_processor.cpp
@@ -261,7 +261,7 @@ AttributeIndex GeoJSONProcessor::readProperties(const rapidjson::Value &pr, bool
 			std::string key = it->name.GetString();
 			if (!layer.useColumn(key)) continue;
 			if (it->value.IsString()) { 
-				attributeStore.addAttribute(attributes, key, it->value.GetString(), 0);
+				attributeStore.addAttribute(attributes, key, static_cast<const std::string&>(it->value.GetString()), 0);
 				layer.attributeMap[key] = 0;
 			} else if (it->value.IsBool()) { 
 				attributeStore.addAttribute(attributes, key, it->value.GetBool(), 0);
-- 
2.47.3