[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Nov 29 05:02:20 PST 2010


 sw/source/core/table/swtable.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fcfaeb75eff8c18faaf8bc7f0df14ae703d2b2ec
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Mon Nov 29 14:01:33 2010 +0100

    n#636367: Table alignment set to "From Left" when moving the right
    
    When moving the right end of a table, the table alignment came to
    Manual but this caused size weirdness when switching from web to print
    layout. Using the "From left" option for the alignment keeps the size.

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index f7c7b79..a28dd70 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -983,7 +983,7 @@ void SwTable::SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
                 else if(!bLeftDist && rNew.GetRight() + nShRight < rNew.GetRightMax())
                     aOri.SetHoriOrient( text::HoriOrientation::LEFT );
                 else
-                    aOri.SetHoriOrient( text::HoriOrientation::NONE );
+                    aOri.SetHoriOrient( text::HoriOrientation::LEFT_AND_WIDTH );
             }
             pFmt->SetFmtAttr( aOri );
         }


More information about the Libreoffice-commits mailing list