diff options
Diffstat (limited to 'sc/inc/address.hxx')
-rw-r--r-- | sc/inc/address.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 2f5956546393..84c62cb57fa1 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -420,6 +420,10 @@ struct ScAddressEqualFunctor } }; +inline bool ValidAddress( const ScAddress& rAddr ) +{ + return ValidCol(rAddr.Col()) && ValidRow(rAddr.Row()) && ValidTab(rAddr.Tab()); +} // === ScRange =============================================================== @@ -616,6 +620,10 @@ struct ScRangeEqualFunctor } }; +inline bool ValidRange( const ScRange& rRange ) +{ + return ValidAddress(rRange.aStart) && ValidAddress(rRange.aEnd); +} // === ScRangePair =========================================================== |