summaryrefslogtreecommitdiff
path: root/sc/source/core/units/unitsimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/units/unitsimpl.cxx')
-rw-r--r--sc/source/core/units/unitsimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/units/unitsimpl.cxx b/sc/source/core/units/unitsimpl.cxx
index 7d16ae32042a..4f0057cb7455 100644
--- a/sc/source/core/units/unitsimpl.cxx
+++ b/sc/source/core/units/unitsimpl.cxx
@@ -780,7 +780,7 @@ bool UnitsImpl::convertCellUnitsForColumnRange(const ScRange& rRange,
}
}
- bool bLocalAnnotationRequired = (!rRange.In(*aHeader.address)) &&
+ bool bLocalAnnotationRequired = (aHeader.address && !rRange.In(*aHeader.address)) &&
(rOutputUnit != aHeader.unit);
double nValue = pDoc->GetValue(aCurrent);