diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-07 11:02:50 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-08 18:51:58 +0100 |
commit | 7ac8732a5c0907a41273be90ff33eb9d88d5eb25 (patch) | |
tree | f2414bb6f0050c9c34d3b3185285ba5ec27b061b | |
parent | feafd25453f7301b216a403f85a7975ac598cdfb (diff) |
n#675961: Fixed regression of copy-paste of Writer table formulas
This fix is only fixing the regression for the old-style formulas. The
newly added ODF Formulas / ww8 formulas still suffers from some trouble:
the pasted formula isn't made relative. This would need much more
important changes that couldn't go into a 3.3.x release.
-rw-r--r-- | patches/dev300/fields-table-formula.diff | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/dev300/fields-table-formula.diff b/patches/dev300/fields-table-formula.diff index c404fedaa..eda87c8ad 100644 --- a/patches/dev300/fields-table-formula.diff +++ b/patches/dev300/fields-table-formula.diff @@ -258,12 +258,13 @@ index 7579256..7ff70f2 100644 String MakeFormel( SwTblCalcPara& rCalcPara ) const { -@@ -122,9 +126,10 @@ public: +@@ -122,9 +126,11 @@ public: virtual ~SwTableFormula(); SwTableFormula& operator=( const SwTableFormula& rCpy ) { - sFormel = rCpy.sFormel; -+ SetFormula( rCpy.GetFormula() ); ++ sInputFormula = rCpy.sInputFormula; ++ sSwFormula = rCpy.sSwFormula; eNmType = rCpy.eNmType; bValidValue = rCpy.bValidValue; + bWwFormula = rCpy.bWwFormula; @@ -395,12 +396,13 @@ index fb98a31..4227bb3 100644 } SwTableFormula::~SwTableFormula() -@@ -555,7 +562,7 @@ void SwTableFormula::PtrToBoxNm( const SwTable* pTbl ) +@@ -555,7 +562,8 @@ void SwTableFormula::PtrToBoxNm( const SwTable* pTbl ) case EXTRNL_NAME: return; } - sFormel = ScanString( fnFormel, *pTbl, (void*)pNd ); + sSwFormula = ScanString( fnFormel, *pTbl, (void*)pNd ); ++ if ( !bWwFormula ) sInputFormula = sSwFormula; // TODO This would need to be improved later eNmType = EXTRNL_NAME; } |