From 9a193b55f2a1695b8d79b9e867a9fb0c6f8c9f64 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 16 Sep 2013 19:54:32 +0100 Subject: [PATCH] Fixed a bug in File relative path parsing. --- modules/juce_core/files/juce_File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index aafb6dcde1..716a80770b 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -380,7 +380,7 @@ File File::getChildFile (StringRef relativePath) const if (lastSlash >= 0) path = path.substring (0, lastSlash); - relativePath = relativePath.text + 3; + relativePath = relativePath.text + (thirdChar == 0 ? 2 : 3); } else {