summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index c937279..c4925d5 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -730,18 +730,7 @@ fail:
if (parser_error_pos < 0) {
PRINT("ERROR: Compilation failed! (no top level object found)");
} else {
- int line = 1;
- QByteArray pb = this->last_compiled_doc.toAscii();
- char *p = pb.data();
- for (int i = 0; i < parser_error_pos; i++) {
- if (p[i] == '\n')
- line++;
- if (p[i] == 0) {
- line = -1;
- break;
- }
- }
- PRINTF("ERROR: Compilation failed! (parser error in line %d)", line);
+ PRINT("ERROR: Compilation failed!");
}
if (procevents)
QApplication::processEvents();
contact: Jan Huwald // Impressum