fixed bug #40997 - Incorrect lines for TODOs with enabled "Skip Tasks BLD200405261800
authorrypacek@netbeans.org
Wed, 26 May 2004 14:29:56 +0000
changeset 4672024e3b394eb6
parent 4671 263972401120
child 4673 985947388c4d
fixed bug #40997 - Incorrect lines for TODOs with enabled "Skip Tasks
Outside Comments"
I didn't understand the role of index in counting
the line number, but a common sense tells me that the counting should
start from the start not from some index, no matter what it is.
tasklist.docscan/src/org/netbeans/modules/tasklist/docscan/SourceTaskProvider.java
     1.1 --- a/tasklist.docscan/src/org/netbeans/modules/tasklist/docscan/SourceTaskProvider.java	Wed May 26 13:14:40 2004 +0000
     1.2 +++ b/tasklist.docscan/src/org/netbeans/modules/tasklist/docscan/SourceTaskProvider.java	Wed May 26 14:29:56 2004 +0000
     1.3 @@ -251,7 +251,7 @@
     1.4                  }
     1.5  
     1.6                  // calculate current line number
     1.7 -                int idx = index;
     1.8 +                int idx = 0;
     1.9                  while (idx <= begin) {
    1.10                      if (text.charAt(idx) == '\n') {// NOI18N
    1.11                          ++lineno;