Changeset 12452


Ignore:
Timestamp:
2006-08-16T11:51:15+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added a check to make sure we're not setting the GUIManager width and height to 0, to try and fix a problem reported on the mailing list.

File:
1 edited

Legend:

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

    r12451 r12452  
    451451        size.width = 640;
    452452    }
    453     else if (size.width > Configuration.screen_size.width) {
     453    else if (size.width > Configuration.screen_size.width && Configuration.screen_size.width > 0) {
    454454        size.width = Configuration.screen_size.width;
    455455    }
     
    457457        size.height = 480;
    458458    }
    459     else if (size.height > Configuration.screen_size.height) {
     459    else if (size.height > Configuration.screen_size.height && Configuration.screen_size.height > 0) {
    460460        size.height = Configuration.screen_size.height;
    461461    }
Note: See TracChangeset for help on using the changeset viewer.