summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-02 03:20:55 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-02 03:25:50 +0200
commit3b6734d1986b832858a58b89a84095593d94e495 (patch)
tree1a7cf28d3d8fe0a5224a2f35ce134ac706a88f8b /sc
parent879edb243ec69421088d7a45fcd0eb5a61aeb22f (diff)
after rebase we have two SetCell methods
Change-Id: Ib10e3084a4881bbafdd4c5b51d64fcf65d5d7da3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column2.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 4df926e9f273..b987a31ad557 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1519,6 +1519,15 @@ void ScColumn::SetCell( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, ScBaseCe
void ScColumn::SetCell( SCROW nRow, ScBaseCell* pNewCell )
{
+ if(pNewCell->GetCellType() == CELLTYPE_FORMULA)
+ {
+ ScFormulaCell* pFCell = static_cast<ScFormulaCell*>(pNewCell);
+ sal_uInt32 nCellFormat = GetNumberFormat( nRow );
+ if( (nCellFormat % SV_COUNTRY_LANGUAGE_OFFSET) == 0)
+ pFCell->SetNeedNumberFormat(true);
+
+ }
+
bool bIsAppended = false;
if ( !maItems.empty() )
{