aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r--InterfaceHandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp
index 4ce6e989..a5c6f4a1 100644
--- a/InterfaceHandler.cpp
+++ b/InterfaceHandler.cpp
@@ -349,8 +349,13 @@ void InterfaceHandler::parseDocString(std::string const& _string, CommentOwner _
}
else if (m_lastTag != DocTagType::NONE) // continuation of the previous tag
currPos = appendDocTag(currPos, end, _owner);
- else if (currPos != end) // skip the line if a newline was found
+ else if (currPos != end)
+ {
+ if (nlPos == end) //end of text
+ return;
+ // else skip the line if a newline was found
currPos = nlPos + 1;
+ }
}
}