Changeset 560

Show
Ignore:
Timestamp:
01/24/10 19:26:47 (3 years ago)
Author:
stefan
Message:

small fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/codehelper/PatternPair.java

    r559 r560  
    2222 
    2323  public PatternPair(String leftPattern, String rightPattern) { 
    24     this(leftPattern, false, rightPattern); 
     24    this(leftPattern, true, rightPattern); 
    2525  } 
    2626 
     
    5454      int rightGroupMin = combine ? 2 : 1; 
    5555      for (int i=1; i<=leftGroupMax; i++) { 
    56         groups.add(new WordWithPos(leftMatcher.group(i) + rightMatcher.group(i), row, leftMatcher.start(i))); 
     56        groups.add(new WordWithPos(leftMatcher.group(i), row, leftMatcher.start(i))); 
    5757      } 
    5858      if (combine) { 
     
    6060      } 
    6161      for (int i=rightGroupMin; i<=rightGroupCount; i++) { 
    62         groups.add(new WordWithPos(leftMatcher.group(i) + rightMatcher.group(i), row, leftMatcher.start(i))); 
     62        groups.add(new WordWithPos(rightMatcher.group(i) + rightMatcher.group(i), row, rightMatcher.start(i))); 
    6363      } 
    6464