diff options
author | Andrzej Hunt <andrzej@ahunt.org> | 2015-05-11 12:19:25 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej@ahunt.org> | 2015-10-20 18:18:31 +0200 |
commit | 746f4fe6d1a3ba899267c1791f32826abdd6dcc6 (patch) | |
tree | 5c0b2ddd8e35312aa562a7151a0cd7eedeebb6d7 | |
parent | 50681389c4d14bf75721a37addacf9606bab20e6 (diff) |
Add some assertions for UtUnit::convertValueTo
Change-Id: Ie606bbb3cab0b4445274b8bf92f8b1533b39c9fd
-rw-r--r-- | sc/source/core/units/utunit.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/units/utunit.hxx b/sc/source/core/units/utunit.hxx index 6bfb1207d3bd..b039c74d78fb 100644 --- a/sc/source/core/units/utunit.hxx +++ b/sc/source/core/units/utunit.hxx @@ -119,6 +119,9 @@ public: } double convertValueTo(double nOriginalValue, const UtUnit& rUnit) { + assert(isValid()); + assert(rUnit.isValid()); + // We could write our own cv_converter wrapper too, but that // seems unnecessary given the limited selection of // operations (convert float/double, either individually |