ASF Bugzilla – Attachment 36152 Details for
Bug 62733
[PATCH] XSLFBackground setFill() can corrupt the document
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch setFill function of XSLFBackground
patch.txt (text/plain), 953 bytes, created by
Mate Borcsok
on 2018-09-18 12:46:04 UTC
(
hide
)
Description:
patch setFill function of XSLFBackground
Filename:
MIME Type:
Creator:
Mate Borcsok
Created:
2018-09-18 12:46:04 UTC
Size:
953 bytes
patch
obsolete
>diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java >index 32a31d6ac..dbc623b14 100644 >--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java >+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java >@@ -77,7 +77,20 @@ public class XSLFBackground extends XSLFSimpleShape > > public void setFillColor(Color color) { > CTBackgroundProperties bgPr = getBgPr(true); >- >+ >+ if (bgPr.isSetBlipFill()) { >+ bgPr.unsetBlipFill(); >+ } >+ if (bgPr.isSetGradFill()) { >+ bgPr.unsetGradFill(); >+ } >+ if (bgPr.isSetGrpFill()) { >+ bgPr.unsetGrpFill(); >+ } >+ if (bgPr.isSetPattFill()) { >+ bgPr.unsetPattFill(); >+ } >+ > if (color == null) { > if (bgPr.isSetSolidFill()) { > bgPr.unsetSolidFill();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 62733
: 36152 |
36154