From 7316c535a3554a4aebbb5ba7575c31a89975a02f Mon Sep 17 00:00:00 2001 From: Jan Bender Date: Wed, 16 Nov 2016 08:30:16 +0100 Subject: [PATCH] - bugfix --- Demos/Utils/Utilities.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Demos/Utils/Utilities.cpp b/Demos/Utils/Utilities.cpp index f14f6a23..a1580693 100644 --- a/Demos/Utils/Utilities.cpp +++ b/Demos/Utils/Utilities.cpp @@ -76,7 +76,10 @@ std::string Utilities::normalizePath(const std::string &path) } index++; } - result = tokens[0]; + result = ""; + if (path[0] == '/') + result = "/"; + result = result + tokens[0]; for (unsigned int i = 1; i < tokens.size(); i++) result = result + "/" + tokens[i];