[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage ...

Peter Muir peter at bleepbleep.org.uk
Mon Aug 13 05:43:40 EDT 2007


  User: pmuir   
  Date: 07/08/13 05:43:40

  Modified:    ui/src/main/java/org/jboss/seam/ui/graphicImage 
                        UITransformImageSize.java
  Log:
  JBSEAM-1789
  
  Revision  Changes    Path
  1.3       +5 -0      jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage/UITransformImageSize.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UITransformImageSize.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage/UITransformImageSize.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- UITransformImageSize.java	20 Jun 2007 10:28:36 -0000	1.2
  +++ UITransformImageSize.java	13 Aug 2007 09:43:40 -0000	1.3
  @@ -42,6 +42,11 @@
         }
         else
         {
  +         if (getWidth() == null || getHeight() == null)
  +         {
  +            throw new UnsupportedOperationException(
  +            "If not specifying a factor or maintain ratio you must specify width and heigh");
  +         }
            image.resize(new Integer(getWidth()), new Integer(getHeight()));
         }
      }
  
  
  



More information about the jboss-cvs-commits mailing list