summaryrefslogtreecommitdiff
path: root/ivi-layermanagement-examples
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-05-13 08:40:57 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-05-13 16:06:27 +0900
commit204eb1ceefcbf9dd8d125274f9e9beb5fa4d6923 (patch)
treebe2b7b64a6e1447fe29e52b3446ed0c69bb8f4fb /ivi-layermanagement-examples
parent65044d38b50fabfca63e3c184809a09513088522 (diff)
downloadwayland-ivi-extension-204eb1ceefcbf9dd8d125274f9e9beb5fa4d6923.tar.gz
LayerManagerControl: Fix scene parsing
Previously, it would grab all text after the final opening '[' for the property. I can only assume C++'s data parsing was kind enough to discard invalid characters, which is why this error only popped up when parsing strings. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-layermanagement-examples')
-rw-r--r--ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
index e7160fe..96f9422 100644
--- a/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
+++ b/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
@@ -231,7 +231,7 @@ void importSceneFromTXTHelper(istream& stream, StringMapTree* node)
propertyType = decodeEscapesequences(propertyType);
startIndex = in.find('[', endIndex) + 1;
- endIndex = in.find_last_of(']', startIndex) - 1;
+ endIndex = in.find_last_of(']');
string propertyValue = in.substr(startIndex, endIndex - startIndex);
propertyValue = decodeEscapesequences(propertyValue);