From 0aaf734131998ce78e7973920b04c2adf068cf12 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Thu, 5 May 2005 13:05:09 +0000 Subject: [PATCH] There seems to be a bug with the current implementation that causes problems if you create a row but no sells. This just works around that bug. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353670 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java b/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java index 693b78235..5c4a87092 100644 --- a/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java +++ b/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java @@ -57,6 +57,7 @@ public class OfficeDrawing // Create a row and size one of the cells reasonably large. HSSFRow row = sheet1.createRow(2); row.setHeight((short) 2800); + row.createCell( (short)1 ); sheet1.setColumnWidth((short) 2, (short) 9000); // Create the drawing patriarch. This is the top level container for @@ -78,6 +79,7 @@ public class OfficeDrawing { // Create a row and size one of the cells reasonably large. HSSFRow row = sheet2.createRow(2); + row.createCell( (short)1 ); row.setHeightInPoints(240); sheet2.setColumnWidth((short) 2, (short) 9000); @@ -94,6 +96,7 @@ public class OfficeDrawing // Create a row and size one of the cells reasonably large HSSFRow row = sheet3.createRow(2); row.setHeightInPoints(140); + row.createCell( (short)1 ); sheet3.setColumnWidth((short) 2, (short) 9000); // Create the drawing patriarch. This is the top level container for