summaryrefslogtreecommitdiffstats
path: root/src/fileparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-08-31 09:54:21 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-08-31 09:54:21 (GMT)
commit8fb2578917109778a7c589e68545d6be3ca7b104 (patch)
tree491261aa95a625747958eaf7d0334214c2a52a95 /src/fileparser.cpp
parent9c915b83bc06babe6f0127f6446143ea50d00b62 (diff)
parentb6897f487f3bda29dbb1eb91e5863ca579222a07 (diff)
downloadDoxygen-8fb2578917109778a7c589e68545d6be3ca7b104.zip
Doxygen-8fb2578917109778a7c589e68545d6be3ca7b104.tar.gz
Doxygen-8fb2578917109778a7c589e68545d6be3ca7b104.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/fileparser.cpp')
-rw-r--r--src/fileparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileparser.cpp b/src/fileparser.cpp
index b54b243..6883622 100644
--- a/src/fileparser.cpp
+++ b/src/fileparser.cpp
@@ -22,7 +22,7 @@ void FileParser::parseCode(CodeOutputInterface &codeOutIntf,
SrcLangExt, // lang
bool, // isExampleBlock
const char *, // exampleName
- FileDef *, // fileDef
+ FileDef * fileDef,
int startLine,
int endLine,
bool, // inlineFragment
@@ -40,8 +40,8 @@ void FileParser::parseCode(CodeOutputInterface &codeOutIntf,
int j=i;
while (j<length && input[j]!='\n') j++;
QCString lineStr = input.mid(i,j-i);
- codeOutIntf.startCodeLine(showLineNumbers);
- if (showLineNumbers) codeOutIntf.writeLineNumber(0,0,0,lineNr);
+ codeOutIntf.startCodeLine(fileDef != 0 && showLineNumbers);
+ if (fileDef != 0 && showLineNumbers) codeOutIntf.writeLineNumber(0,0,0,lineNr);
if (!lineStr.isEmpty()) codeOutIntf.codify(lineStr);
codeOutIntf.endCodeLine();
lineNr++;