[Libreoffice-commits] .: patches/dev300

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Feb 1 05:25:21 PST 2011


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

New commits:
commit 1bdae011acbbd886e6d13a8e45ab908d8e8c8296
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