--- metatranslator.cpp 2015-03-12 10:39:18.984232622 +0100
+++ metatranslator.patched.cpp 2015-03-12 10:37:36.225524474 +0100
@@ -471,8 +471,10 @@
t << ">\n";
if (!msg.fileName().isEmpty() && msg.lineNumber() >= 0) {
QDir tsPath = QFileInfo(filename).absoluteDir();
- QString fn = tsPath.relativeFilePath(msg.fileName()).replace('\\','/');
- t << " \n";
+ QDir curdir = QDir(".");
+ curdir.makeAbsolute();
+ QString fn = tsPath.relativeFilePath(curdir.filePath(msg.fileName())).replace('\\','/');
+ t << " \n";
}
t << "