summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-04 14:21:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-04 14:21:03 +0100
commitfa4a252429949a901aa4c7e44a492132b6565ef9 (patch)
treea3679992a946ec2d8381d8ec8bf4bd780d7279bf
parentecd14669f6eba8d291ff757bc776642c7babc1b4 (diff)
state *what* format is problematic in the OSL_FAIL
-rw-r--r--sw/source/core/attr/format.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index b662893e50..0caf862c16 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -38,6 +38,7 @@
#include <paratr.hxx> // fuer SwParaFmt - SwHyphenBug
#include <swcache.hxx>
#include <fmtcolfunc.hxx>
+#include <rtl/strbuf.hxx>
TYPEINIT1( SwFmt, SwClient ); //rtti fuer SwFmt
@@ -254,7 +255,9 @@ SwFmt::~SwFmt()
SwFmt *pParentFmt = DerivedFrom();
if (!pParentFmt)
{
- OSL_FAIL( "~SwFmt: parent format missing" );
+ OSL_FAIL(rtl::OStringBuffer(
+ RTL_CONSTASCII_STRINGPARAM("~SwFmt: parent format missing from: ")).
+ append(rtl::OUStringToOString(GetName(), osl_getThreadTextEncoding())).getStr());
}
else
{