diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-10 16:23:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-10 16:23:34 +0100 |
commit | 1ed8aae1050a0900998726e0484a032c097b6a60 (patch) | |
tree | c993628c79ea413fa3fe350253c8b0abe8474ec8 | |
parent | 2ddf3a73030c04f5060654894dc5a6543cbe2ed0 (diff) |
take explicit number format before implicit number format, fdo#47084
Follow-up to fdo#43467
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 034d261e39e2..5ff808bff4f9 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3280,7 +3280,7 @@ sal_uLong getDisplayNumberFormat(ScDocument* pDoc, const ScAddress& rPos) return nFormat; ScBaseCell* pCell = pDoc->GetCell(rPos); - if (!pCell || pCell->GetCellType() != CELLTYPE_FORMULA) + if (!pCell || pCell->GetCellType() != CELLTYPE_FORMULA || nFormat) return nFormat; // With formula cell, the format may be inferred from the formula result. |