Commit 29f39521 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed setSourceDirName for console mode compiler

parent 5a343908
...@@ -86,8 +86,9 @@ void KumirBytecodeCompilerPlugin::start() ...@@ -86,8 +86,9 @@ void KumirBytecodeCompilerPlugin::start()
f.close(); f.close();
int id = m_analizer->newDocument(); int id = m_analizer->newDocument();
QString dirname = QFileInfo(filename).absoluteDir().absolutePath();
m_analizer->setSourceDirName(id, dirname);
m_analizer->setSourceText(id, kumFile.visibleText); m_analizer->setSourceText(id, kumFile.visibleText);
m_analizer->setSourceDirName(id, QFileInfo(filename).absoluteDir().dirName());
if (kumFile.hasHiddenText) { if (kumFile.hasHiddenText) {
m_analizer->setHiddenText(id, kumFile.hiddenText, -1); m_analizer->setHiddenText(id, kumFile.hiddenText, -1);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment