Changeset 11825


Ignore:
Timestamp:
2006-05-12T16:43:56+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a bug where the collection tree would stuff up between Gather and Enrich panes if the collection was empty.

File:
1 edited

Legend:

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

    r11761 r11825  
    154154    public void gainFocus()
    155155    {
    156     // If there is nothing in the collection tree there is nothing to do
    157     if (collection_tree == null || collection_tree.getRowCount() == 0) {
    158         return;
    159     }
    160 
    161156    // Add the collection tree and filter back into this pane
    162157    collection_scroll = new JScrollPane(collection_tree);
     
    165160
    166161    // Select the first node in the tree if nothing is already selected
    167     if (collection_tree.getSelectionPaths() == null) {
     162    if (collection_tree.getSelectionPaths() == null && collection_tree.getRowCount() > 0) {
    168163        collection_tree.setImmediate(true);
    169164        collection_tree.setSelectionRow(0);
Note: See TracChangeset for help on using the changeset viewer.