diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-10 16:23:34 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-12 11:25:53 -0400 |
commit | 36e877cf80eb3b7fc092c08cdc166b75d674bf53 (patch) | |
tree | 6b49750b25a672e1d52ccc8c065ccd5493ea1297 /sc | |
parent | 94541ebd9eb95a47f40bac95f5f6982a562e5a4d (diff) |
take explicit number format before implicit number format, fdo#47084
Follow-up to fdo#43467
Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-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 93dcb565a115..effb9e8a30b0 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3285,7 +3285,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. |