User: pere    
  Date: 06/03/11 22:01:42

  Modified:    debian/patches 02_imageio.patch
  Log:
  Fix typo and clean up indentation.
  
  Revision  Changes    Path
  1.2       +3 -3      openjump/debian/patches/02_imageio.patch
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/openjump/debian/patches/02_imageio.patch?annotate=1.2&cvsroot=
  
  CVSWeb: View this file:             
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/openjump/debian/patches/02_imageio.patch?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/openjump/debian/patches/02_imageio.patch.diff?r1=1.2&r2=1.1&cvsroot=
  
  -----------------------------------
  
  Index: 02_imageio.patch
  ===================================================================
  RCS file: /cvsroot/pkg-grass/openjump/debian/patches/02_imageio.patch,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 02_imageio.patch  11 Mar 2006 20:36:28 -0000      1.1
  +++ 02_imageio.patch  11 Mar 2006 22:01:42 -0000      1.2
  @@ -24,9 +24,9 @@
   -                        JPEGImageDecoder decoder = 
JPEGCodec.createJPEGDecoder(in);
   -                        JPEGDecodeParam dp = decoder.getJPEGDecodeParam();
   -                        BufferedImage image = 
decoder.decodeAsBufferedImage();
  -+                    FileImageInputStream in = new FileImageInputStream(new 
File(jpgFilename));
  -+                        ImageReader decoder = (ImageReader) 
ImageIO.getImageReadersByFormatName("JPEG");
  -+                    decoder.setInput(in);
  ++                        FileImageInputStream in = new 
FileImageInputStream(new File(jpgFilename));
  ++                        ImageReader decoder = (ImageReader) 
ImageIO.getImageReadersByFormatName("JPEG").next();
  ++                        decoder.setInput(in);
   +                        BufferedImage image = decoder.read(0);
   +                        decoder.dispose();
                            in.close();
  
  
  

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to