Commits

Anonymous committed 2e40652

CWS-TOOLING: integrate CWS hb311fixes03_DEV300
2009-07-28 11:08:46 +0200 hbrinkm r274390 : #i103357# adapted patch and applied

Comments (0)

Files changed (1)

sw/source/filter/ww8/ww8par2.cxx

         }
     } */
 
-    if (nMinLeft && ((!bIsBiDi && text::HoriOrientation::LEFT == eOri) || (bIsBiDi && text::HoriOrientation::RIGHT == eOri)))
+    if ((nMinLeft && !bIsBiDi && text::HoriOrientation::LEFT == eOri) || 
+        (nMinLeft != -108 && bIsBiDi && text::HoriOrientation::RIGHT == eOri)) // Word sets the first nCenter value to -108 when no indent is used
         eOri = text::HoriOrientation::LEFT_AND_WIDTH; //  absolutely positioned
 
     nDefaultSwCols = nMinCols;  // da Zellen einfuegen billiger ist als Mergen
             if (!bIsBiDi)
                 nLeft = GetMinLeft();
             else
-                nLeft = pIo->maSectionManager.GetTextAreaWidth() - nPreferredWidth  - nOrgDxaLeft;
+            {
+                if (nPreferredWidth)                   
+                    nLeft = pIo->maSectionManager.GetTextAreaWidth() - nPreferredWidth  - nOrgDxaLeft;
+                else
+                    nLeft = -GetMinLeft();
+            }
 
             aL.SetLeft(nLeft);