]> source.dussan.org Git - poi.git/commitdiff
add sprmPDxaLeft1 0x8460 PAPX SPRM support
authorSergey Vladimirov <sergey@apache.org>
Wed, 7 Sep 2011 14:58:42 +0000 (14:58 +0000)
committerSergey Vladimirov <sergey@apache.org>
Wed, 7 Sep 2011 14:58:42 +0000 (14:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1166209 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java

index dad351e0800042766a90335238fe882bad3661e8..3b610b5d95bd0ab4b21f3cb9c04ad09cadfcc481 100644 (file)
@@ -412,13 +412,18 @@ public final class ParagraphSprmUncompressor
             // sprmPFInnerTtp -- 0x244c
             newPAP.setFTtpEmbedded( sprm.getOperand()  != 0);
             break;
+        case 0x60:
+            // sprmPDxaLeft1 -- 0x8460
+            newPAP.setDxaLeft1( sprm.getOperand() );
+            break;
       case 0x61:
         // sprmPJc 
         newPAP.setJustificationLogical((byte) sprm.getOperand());
         break;
-      default:
-        break;
-    }
+        default:
+            logger.log( POILogger.DEBUG, "Unknown PAP sprm ignored: " + sprm );
+            break;
+        }
   }
 
   private static void handleTabs(ParagraphProperties pap, SprmOperation sprm)