[Libreoffice-commits] .: Branch 'libreoffice-3-3' - patches/dev300

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Feb 1 06:08:38 PST 2011


 patches/dev300/fields-table-formula.diff |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a146bbf9b62679a4eb1fce0535d5c0dd490b137c
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Tue Feb 1 13:57:05 2011 +0100

    n#664516: Don't use a reference or the default formula string will be changed

diff --git a/patches/dev300/fields-table-formula.diff b/patches/dev300/fields-table-formula.diff
index 6c3faf4..ccdeaf8 100644
--- a/patches/dev300/fields-table-formula.diff
+++ b/patches/dev300/fields-table-formula.diff
@@ -1049,7 +1049,7 @@ index 760e4d7..50267b1 100644
                          SfxItemSet aSet( rWrtSh.GetAttrPool(), RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
 -                        aSet.Put( SwTblBoxFormula( sFormula ));
 +                        rWrtSh.GetTblBoxFormulaAttrs( aSet );
-+                        SwTblBoxFormula& aTblBoxFormula = (SwTblBoxFormula&)aSet.Get( RES_BOXATR_FORMULA );
++                        SwTblBoxFormula aTblBoxFormula( (SwTblBoxFormula&)aSet.Get( RES_BOXATR_FORMULA ) );
 +                        aTblBoxFormula.SetFormula( sFormula );
 +
 +                        if ( aSet.GetItemState( RES_BOXATR_FORMULA ) == SFX_ITEM_DEFAULT )


More information about the Libreoffice-commits mailing list