Commits

Anonymous committed da28d5f

masterfix OOO340: #i117696# do not write fo:margin

Comments (0)

Files changed (1)

xmloff/source/style/PageMasterExportPropMapper.cxx

 {
     if (pPMMarginAll)
     {
-        if (pPMMarginTop && pPMMarginBottom && pPMMarginLeft && pPMMarginRight)
-        {
-            sal_Int32 nTop = 0, nBottom = 0, nLeft = 0, nRight = 0;
-
-            pPMMarginTop->maValue >>= nTop;
-            pPMMarginBottom->maValue >>= nBottom;
-            pPMMarginLeft->maValue >>= nLeft;
-            pPMMarginRight->maValue >>= nRight;
-
-            if ((nTop == nBottom) && (nBottom == nLeft) && (nLeft == nRight))
-            {
-                lcl_RemoveState( pPMMarginTop );
-                lcl_RemoveState( pPMMarginBottom );
-                lcl_RemoveState( pPMMarginLeft );
-                lcl_RemoveState( pPMMarginRight );
-            }
-            else
-                lcl_RemoveState( pPMMarginAll );
-        }
-        else
-            lcl_RemoveState( pPMMarginAll );
+        lcl_RemoveState(pPMMarginAll); // #i117696# do not write fo:margin
     }
 
 	if( pPMBorderAll )