[Libreoffice-commits] .: Branch 'ooo-build-3-2-1' - patches/dev300

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Nov 29 04:54:09 PST 2010


 patches/dev300/apply                    |    1 +
 patches/dev300/sw-table-web-layout.diff |   24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

New commits:
commit 92b5fb3b171f3cb228ffe3986f7a779974c0ef16
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Mon Nov 29 13:51:01 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.
    
    * patches/dev300/apply: applying the patch
    * patches/dev300/sw-table-web-layout.diff: the actual patch

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 04152b0..422a995 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3051,6 +3051,7 @@ fields-nested-set.diff, n#634478, cbosdo
 fields-double-click.diff, n#639288, cbosdo
 sw-ww8-colbreak-import.diff, n#652364, cbosdo
 sw-font-color-gui-fix.diff, n#652204, cbosdo
+sw-table-web-layout.diff, n#636367, cbosdo
 
 [ IxionUse ]
 fields-table-formula.diff, n#631912, cbosdo
diff --git a/patches/dev300/sw-table-web-layout.diff b/patches/dev300/sw-table-web-layout.diff
new file mode 100644
index 0000000..b78dcdb
--- /dev/null
+++ b/patches/dev300/sw-table-web-layout.diff
@@ -0,0 +1,24 @@
+Fix table resize problem when switching to/from web layout
+
+From: Cédric Bosdonnat <cedricbosdo at openoffice.org>
+
+
+---
+
+ sw/source/core/table/swtable.cxx |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+
+diff --git sw/source/core/table/swtable.cxx sw/source/core/table/swtable.cxx
+index 4bc7e81..3e034b0 100644
+--- sw/source/core/table/swtable.cxx
++++ sw/source/core/table/swtable.cxx
+@@ -990,7 +990,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