summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 6f156992afc..79128bbdac7 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -5070,7 +5070,7 @@ Slice::Unit::scanPosition(const char* s)
if(_currentLine == 0)
{
- if(currentFile != _topLevelFile)
+ if(_currentIncludeLevel > 0 || currentFile != _topLevelFile)
{
type = Push;
line.erase(idx);