]> source.dussan.org Git - poi.git/commitdiff
Bugzilla 52598 - respect slide background when rendering slides in HSLF
authorYegor Kozlov <yegor@apache.org>
Wed, 22 Feb 2012 12:59:40 +0000 (12:59 +0000)
committerYegor Kozlov <yegor@apache.org>
Wed, 22 Feb 2012 12:59:40 +0000 (12:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1292267 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/status.xml
src/scratchpad/src/org/apache/poi/hslf/model/Slide.java

index a2bd2f3d0b9fdecfefc837638a2c87696ab247ff..99cb798d002ec048073402a006bef1b88cb5a991 100644 (file)
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.8-beta6" date="2012-??-??">
+           <action dev="poi-developers" type="fix">52598 - respect slide background when rendering slides in HSLF</action>
            <action dev="poi-developers" type="fix">51731 - fixed painting shape outlines in HSLF</action>
            <action dev="poi-developers" type="fix">52701 - fixed seting vertical alignment for XSLFTableCell</action>
            <action dev="poi-developers" type="fix">52687 - fixed merging slides with pictures with associated custom tags</action>
index 0e6b0027ddc8feda2fa3bb1f14e4a3d2b153b655..7822d8cd11454a26dd3fe8b81a96d2eb834385aa 100644 (file)
@@ -419,7 +419,9 @@ public final class Slide extends Sheet
 
     public void draw(Graphics2D graphics){
         MasterSheet master = getMasterSheet();
-        if(getFollowMasterBackground()) master.getBackground().draw(graphics);
+        Background bg = getBackground();
+        if(bg != null)bg.draw(graphics);
+
         if(getFollowMasterObjects()){
             Shape[] sh = master.getShapes();
             for (int i = 0; i < sh.length; i++) {
@@ -428,6 +430,7 @@ public final class Slide extends Sheet
                 sh[i].draw(graphics);
             }
         }
+
         Shape[] sh = getShapes();
         for (int i = 0; i < sh.length; i++) {
             sh[i].draw(graphics);