diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-10 22:56:04 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-10 23:33:40 +0100 |
commit | 9539bb2b28c05aa3ff7ca1aa19161ae864116422 (patch) | |
tree | b504f5de7e75b0b089ab258d573211abb7eb46ac /src/libs/cplusplus | |
parent | a33ae02927f8266da669830b67bf84854241d61c (diff) | |
download | qt-creator-9539bb2b28c05aa3ff7ca1aa19161ae864116422.tar.gz |
Less annoying syntax checker.
Diffstat (limited to 'src/libs/cplusplus')
-rw-r--r-- | src/libs/cplusplus/CppDocument.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index 06655b0960..8c2d626590 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -240,6 +240,9 @@ void Document::startSkippingBlocks(unsigned start) void Document::stopSkippingBlocks(unsigned stop) { + if (_skippedBlocks.isEmpty()) + return; + unsigned start = _skippedBlocks.back().begin(); if (start > stop) _skippedBlocks.removeLast(); // Ignore this block, it's invalid. |