Changeset 4912


Ignore:
Timestamp:
11/29/03 04:24:53 (18 years ago)
Author:
piso
Message:

wrapCommentInternal(): return right away if index < 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/WrapText.java

    r2387 r4912  
    33 *
    44 * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: WrapText.java,v 1.6 2003-06-18 14:50:13 piso Exp $
     5 * $Id: WrapText.java,v 1.7 2003-11-29 04:24:53 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    127127        if (commentStart != null) {
    128128            int index = dotLine.getText().indexOf(commentStart);
     129            if (index < 0)
     130                return;
    129131            String prefix =
    130132                dotLine.getText().substring(0, index + commentStart.length());
Note: See TracChangeset for help on using the changeset viewer.