View | Details | Raw Unified | Return to bug 45829
Collapse All | Expand All

(-)HSSFPicture.java.orig (+8 lines)
Lines 235-240 Link Here
235
                    BufferedImage img = r.read(0);
235
                    BufferedImage img = r.read(0);
236
236
237
                    int[] dpi = getResolution(r);
237
                    int[] dpi = getResolution(r);
238
                    
239
                    //if DPI is zero then assume standard 96 DPI
240
                    //since cannot divide by zero
241
                    if (dpi[0] == 0)
242
                        dpi[0] = 96;
243
                    if (dpi[1] == 0)
244
                        dpi[1] = 96;
245
					
238
                    size.width = img.getWidth()*96/dpi[0];
246
                    size.width = img.getWidth()*96/dpi[0];
239
                    size.height = img.getHeight()*96/dpi[1];
247
                    size.height = img.getHeight()*96/dpi[1];
240
248

Return to bug 45829