Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

branch
5_4_x
changeset 3817
0f58961a074f
parent 3175
1a6638ccce9d
child 3818
2155e837ee74
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Sun Sep 21 12:47:20 2014 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Sat Sep 27 11:22:39 2014 +0200
@@ -475,7 +475,7 @@
                         fname, lineno, position, text = error
                         if lineno > len(source):
                             lineno = len(source)
-                        if "__IGNORE_WARNING__" not in \
+                        if lineno == 0 or "__IGNORE_WARNING__" not in \
                                 Utilities.extractLineFlags(
                                 source[lineno - 1].strip()):
                             self.noResults = False

eric ide

mercurial