Changeset 32510

Show
Ignore:
Timestamp:
10.10.2018 21:14:33 (6 weeks ago)
Author:
ak19
Message:

Bugfix when exporting from GLI: calling substring resulted in indexOutOfBounds.

Files:
1 modified

Legend:

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

    r28702 r32510  
    637637    // Ignore the messages from RecPlug with 'show_progress' set (used for progress bars) 
    638638    String message = event.getMessage(); 
     639    int len = "export.pl> ".length(); 
    639640    if (message.startsWith("export.pl>")) { 
    640         message = message.substring(13); 
     641        message = message.substring(len); 
    641642        //DebugStream.println("message = "+event.getMessage()); 
    642643        error_message.append(message);