Changeset 7094


Ignore:
Timestamp:
2004-03-19T13:21:41+13:00 (20 years ago)
Author:
mdewsnip
Message:

Fixed a small bug with the log clearing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r7091 r7094  
    318318        if (previous_collection != null) {
    319319        // clear the log
    320         ((AppendLineOnlyFileDocument)log_textarea.getDocument()).destroy();
     320        Document log_document = log_textarea.getDocument();
     321        if (log_document instanceof AppendLineOnlyFileDocument) {
     322            ((AppendLineOnlyFileDocument) log_document).destroy();
     323        }
    321324        }
    322325        previous_collection = current_collection;
Note: See TracChangeset for help on using the changeset viewer.