[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Aug 4 06:21:11 PDT 2011


 sw/source/core/attr/format.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit fa4a252429949a901aa4c7e44a492132b6565ef9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 4 14:21:03 2011 +0100

    state *what* format is problematic in the OSL_FAIL

diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index b662893..0caf862 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
         {


More information about the Libreoffice-commits mailing list