sc/source/ui/unoobj/cellsuno.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 80502737b2ac722d4adfd4e89d3dc46799ded97e Author: Caolán McNamara <caol...@redhat.com> Date: Wed May 25 17:39:13 2016 +0100 Resolves: tdf#98895 range search crashes open office if range is null Change-Id: I12cf1045e1fd606cff58b68254eaf5cba6dee838 diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index eedf02e..944c56d 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -909,11 +909,11 @@ static void lcl_CopyProperties( beans::XPropertySet& rDest, beans::XPropertySet& static SCTAB lcl_FirstTab( const ScRangeList& rRanges ) { - OSL_ENSURE(rRanges.size() >= 1, "was fuer Ranges ?!?!"); - const ScRange* pFirst = rRanges[ 0 ]; + if (rRanges.empty()) + throw std::out_of_range("empty range"); + const ScRange* pFirst = rRanges[0]; if (pFirst) return pFirst->aStart.Tab(); - return 0; // soll nicht sein }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits