summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-02 23:40:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-03 10:33:56 +0100
commit6c505f23af72fa7317823907e6963c11fcd70b60 (patch)
treeace1a6bd728d24460205b39346234462fd3fb14a /sfx2/source/doc
parent76f27b1bc52892d53f7b2a0429a50d2c56a07081 (diff)
make assert useful, tell me the invalid size
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/oleprops.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index adf892c9848c..6170d9120d20 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -35,6 +35,7 @@
#include <tools/debug.hxx>
#include <tools/datetime.hxx>
#include <rtl/tencinfo.h>
+#include <rtl/strbuf.hxx>
// ============================================================================
@@ -300,7 +301,10 @@ String SfxOleStringHelper::ImplLoadString8( SvStream& rStrm ) const
sal_Int32 nSize(0);
rStrm >> nSize;
// size field includes trailing NUL character
- DBG_ASSERT( (0 < nSize) && (nSize <= 0xFFFF), "SfxOleStringHelper::ImplLoadString8 - invalid string" );
+ DBG_ASSERT( (0 < nSize) && (nSize <= 0xFFFF),
+ rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM(
+ "SfxOleStringHelper::ImplLoadString8 - invalid string of len ")).
+ append(nSize).getStr() );
if( (0 < nSize) && (nSize <= 0xFFFF) )
{
// load character buffer