From cc6798946dd8ab54d3fac1e49e9a201724e6d747 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 14 Nov 2012 09:24:12 +0100 Subject: [PATCH] Turn "odd number of Which-IDs" into a true assert ...as it leads to crashes anyway (as witnessed with what got fixed with 09ee17974f31ca188df532a2fea33a79ca367ebe "Fix Which-ID range of OfaTreeOptionsDialog item set"). Change-Id: I9ad24d3dd11530ad002a5277d22b60e651e67d70 --- svl/source/items/nranges.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx index b3a7210f559e..c2c08cdfeb4c 100644 --- a/svl/source/items/nranges.cxx +++ b/svl/source/items/nranges.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - +#include #include // compiled via include from itemset.cxx only! @@ -86,7 +86,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs, aNumArr.push_back( nIns ); } - DBG_ASSERT( bEndOfRange, "ungerade Anzahl von Which-Paaren!" ); + assert( bEndOfRange ); // odd number of Which-IDs // so, jetzt sind alle Bereiche vorhanden und rpRanges = new NUMTYPE[ aNumArr.size() + 1 ];