summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbarange.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbarange.cxx')
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 026c0ec5f260..6fc19a9497b9 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -4633,6 +4633,7 @@ ScVbaRange::AutoFilter( const uno::Any& aField, const uno::Any& Criteria1, const
// e.g. can you have an Operator without a Criteria? In LibreOffice it
if ( Operator.hasValue() && ( Operator >>= nOperator ) )
{
+ assert(pTabFilts);
// if it's a bottom/top Ten(Percent/Value) and there
// is no value specified for criteria1 set it to 10
if ( !bCritHasNumericValue && sCriteria1.isEmpty() && ( nOperator != excel::XlAutoFilterOperator::xlOr ) && ( nOperator != excel::XlAutoFilterOperator::xlAnd ) )
@@ -4669,6 +4670,7 @@ ScVbaRange::AutoFilter( const uno::Any& aField, const uno::Any& Criteria1, const
}
if ( !bAll && bAcceptCriteria2 )
{
+ assert(pTabFilts);
pTabFilts[0].Connection = sheet::FilterConnection_AND;
pTabFilts[0].Field = (nField - 1);