Changeset 4482


Ignore:
Timestamp:
2003-06-05T11:08:07+12:00 (21 years ago)
Author:
mdewsnip
Message:

Now chooses a sensible default location and size if none can be found from the configuration files.

File:
1 edited

Legend:

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

    r4479 r4482  
    205205        missingPERL(dictionary);
    206206        }
    207         else {
    208         ///ystem.err.println("Now perl_path = " + config.perl_path);
    209         }
    210207
    211208        // Size and place the frame on the screen
    212209        Rectangle bounds = config.getBounds("general.bounds", true);
    213         if (bounds != null) {
    214         size = bounds.getSize();
    215         }
     210        if (bounds == null) {
     211        // Choose a sensible default value
     212        bounds = new Rectangle(0, 0, 640, 480);
     213        }
     214
    216215        // Ensure width and height are reasonable
     216        size = bounds.getSize();
    217217        if (size.width < 640) {
    218218        size.width = 640;
Note: See TracChangeset for help on using the changeset viewer.