Kaydet (Commit) b61642bb authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't set hard format for text formats

Gets rid of some test failures that are the result of dirty test
environments.

Change-Id: I45ed4bbe46c8aa598e074c3eac7903811cbb2620
üst 57efd69c
...@@ -1301,7 +1301,10 @@ void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam ) ...@@ -1301,7 +1301,10 @@ void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam )
sal_uInt16 nFormatType = p->GetRetFormatType(); sal_uInt16 nFormatType = p->GetRetFormatType();
sal_Int32 nFormatIndex = p->GetRetFormatIndex(); sal_Int32 nFormatIndex = p->GetRetFormatIndex();
if((nFormatIndex % SV_COUNTRY_LANGUAGE_OFFSET) == 0) // don't set text format as hard format
if(nFormatType == NUMBERFORMAT_TEXT)
nFormatIndex = 0;
else if((nFormatIndex % SV_COUNTRY_LANGUAGE_OFFSET) == 0)
nFormatIndex = ScGlobal::GetStandardFormat(*pDocument->GetFormatTable(), nFormatIndex = ScGlobal::GetStandardFormat(*pDocument->GetFormatTable(),
nFormatIndex, nFormatType); nFormatIndex, nFormatType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment