diff options
author | Noel Power <noel.power@novell.com> | 2011-08-15 11:23:31 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-08-15 11:30:49 +0100 |
commit | 9ca076f6236a24e8909fdd471ea7acea88bfc01b (patch) | |
tree | 2191c090bf14faad48613e2a5cff5e546e0b7d24 /sw | |
parent | 51e0d9a96045329d8e348f752a80e81d1f90309e (diff) |
bnc#693477 improve column/table width when table width > pagewidth
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 11fd617e3671..8b6bf6615359 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -2291,7 +2291,14 @@ SwTwips SwWW8ImplReader::MoveOutsideFly(SwFrmFmt *pFlyFmt, aSize.SetHeightSizeType(ATT_MIN_SIZE); aSize.SetHeight(MINLAY); pFlyFmt->SetFmtAttr(aSize); - pTblFmt->SetFmtAttr(SwFmtHoriOrient(0,text::HoriOrientation::FULL)); + SwFmtHoriOrient aHori = pTblFmt->GetHoriOrient(); + // passing the table orientaion of + // LEFT_AND_WIDTH to the frame seems to + // work better than FULL, especially if the + // table width exceeds the page width, however + // I am not brave enough to set it in all + // instances + pTblFmt->SetFmtAttr( SwFmtHoriOrient(0, ( aHori.GetHoriOrient() == text::HoriOrientation::LEFT_AND_WIDTH ) ? ::text::HoriOrientation::LEFT_AND_WIDTH : text::HoriOrientation::FULL ) ); nRetWidth = aSize.GetWidth(); } } |