]> source.dussan.org Git - poi.git/commitdiff
reuse code
authorPJ Fanning <fanningpj@apache.org>
Sun, 28 Aug 2022 13:13:56 +0000 (13:13 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 28 Aug 2022 13:13:56 +0000 (13:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903734 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java

index d159b2841a3262fc6c8d5d1ccb58048527940a6e..ceccd10635124f4bce18f462da66a74c19a98e5a 100644 (file)
@@ -20,7 +20,7 @@
 package org.apache.poi.xslf.usermodel;
 
 import static org.apache.poi.openxml4j.opc.PackageRelationshipTypes.CORE_PROPERTIES_ECMA376_NS;
-import static org.apache.poi.xssf.usermodel.XSSFRelation.NS_WORDPROCESSINGML;
+import static org.apache.poi.xssf.usermodel.XSSFRelation.NS_PRESENTATIONML;
 
 import java.awt.geom.Rectangle2D;
 import java.io.IOException;
@@ -292,7 +292,7 @@ public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFSh
     @Override
     public XSLFPictureShape getFallbackPicture() {
         String xquery =
-                  "declare namespace p='" + NS_WORDPROCESSINGML + "'; "
+                  "declare namespace p='" + NS_PRESENTATIONML + "'; "
                 + "declare namespace mc='http://schemas.openxmlformats.org/markup-compatibility/2006' "
                 + ".//mc:Fallback/*/p:pic"
                 ;