~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to javax/swing/BoxLayout.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
 
336
336
        checkTotalRequirements();
337
337
        Insets i = container.getInsets();
338
 
        return new Dimension(xTotal.maximum + i.left + i.right,
339
 
                             yTotal.maximum + i.top + i.bottom);
 
338
        int xDim = xTotal.maximum + i.left + i.right;
 
339
        int yDim = yTotal.maximum + i.top + i.bottom;
 
340
        
 
341
        // Check for overflow
 
342
        if (xDim < xTotal.maximum)
 
343
          xDim = Integer.MAX_VALUE;
 
344
        if (yDim < yTotal.maximum)
 
345
          yDim = Integer.MAX_VALUE;
 
346
        return new Dimension(xDim, yDim);
340
347
      }
341
348
  }
342
349