summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2018-05-08 13:28:28 +0530
committerDennis Francis <dennis.francis@collabora.co.uk>2018-05-08 17:24:29 +0200
commitffbe5d9ec3983a9e12f7b1528717d6f3bed071ca (patch)
tree41e845674ca9d7d16b60b55b51b67960fa6dd1d8
parentff592615af3e3061e74bc9eca796035aa1bc5f0f (diff)
Use format-table from the interpreter context
Change-Id: I7ed243de18e1127d0ed7c60a0db76bf2a3043530 Reviewed-on: https://gerrit.libreoffice.org/53968 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sc/source/core/data/dociter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 8f42651d2a6f..b09c4413301b 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1069,7 +1069,7 @@ ScQueryCellIterator::ScQueryCellIterator(ScDocument* pDocument, const ScInterpre
ScQueryEntry& rEntry = mpParam->GetEntry(i);
ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
sal_uInt32 nIndex = 0;
- bool bNumber = pDoc->GetFormatTable()->IsNumberFormat(
+ bool bNumber = mrContext.GetFormatTable()->IsNumberFormat(
rItem.maString.getString(), nIndex, rItem.mfVal);
rItem.meType = bNumber ? ScQueryEntry::ByValue : ScQueryEntry::ByString;
}
@@ -1665,7 +1665,7 @@ bool ScQueryCellIterator::BinarySearch()
CollatorWrapper* pCollator = (mpParam->bCaseSens ? ScGlobal::GetCaseCollator() :
ScGlobal::GetCollator());
- SvNumberFormatter& rFormatter = *(pDoc->GetFormatTable());
+ SvNumberFormatter& rFormatter = *(mrContext.GetFormatTable());
const ScQueryEntry& rEntry = mpParam->GetEntry(0);
const ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
bool bLessEqual = rEntry.eOp == SC_LESS_EQUAL;