From f2b26a488a9fa05181e2b4237014d2acbc4682d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 18 Nov 2018 16:15:09 +0100 Subject: [PATCH] relative paths: another fix for {code} --- lib/errorlogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index 1a08dba2c..424341750 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -537,7 +537,7 @@ std::string ErrorLogger::ErrorMessage::toString(bool verbose, const std::string endl = "\r\n"; else endl = "\r"; - findAndReplace(text, "{code}", readCode(fileLocation.getfile(), fileLocation.line, fileLocation.col, endl)); + findAndReplace(text, "{code}", readCode(fileLocation.getOrigFile(), fileLocation.line, fileLocation.col, endl)); } result += '\n' + text; }