[seam-commits] Seam SVN: r11101 - branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Jun 8 16:46:20 EDT 2009


Author: norman.richards at jboss.com
Date: 2009-06-08 16:46:20 -0400 (Mon, 08 Jun 2009)
New Revision: 11101

Modified:
   branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java
Log:
JBSEAM-4205

Modified: branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java
===================================================================
--- branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java	2009-06-07 19:46:14 UTC (rev 11100)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java	2009-06-08 20:46:20 UTC (rev 11101)
@@ -312,10 +312,14 @@
             hasContent = true;
         } else if (o instanceof Element) {
             if (cell.getImage() != null) {
-                cell.addElement(cell.getImage());
+                Image image = cell.getImage(); 
+                cell.setImage(null);
+                cell.addElement(image);
             }
             if (cell.getPhrase() != null) {
-                cell.addElement(cell.getPhrase());
+                Phrase p = cell.getPhrase();
+                cell.setPhrase(null);
+                cell.addElement(p);
             }
             cell.addElement((Element) o);
         } else {




More information about the seam-commits mailing list