sc/source/core/data/dociter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit ffbe5d9ec3983a9e12f7b1528717d6f3bed071ca Author: Dennis Francis <dennis.fran...@collabora.co.uk> Date: Tue May 8 13:28:28 2018 +0530 Use format-table from the interpreter context Change-Id: I7ed243de18e1127d0ed7c60a0db76bf2a3043530 Reviewed-on: https://gerrit.libreoffice.org/53968 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Jenkins <c...@libreoffice.org> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits