[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Sep 25 03:43:34 PDT 2012
sw/source/core/doc/tblafmt.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 27b2823907f6964211f0a0e2e091f77e81215d5f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 25 11:32:25 2012 +0100
avoid self assignment crash
Change-Id: I8cbe5873aa39ac8b17f330c836985b7780ea2047
(cherry picked from commit bdd8cbf38ab3e0b68f6a8a68dc2a70ff7e9e18a1)
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 65f2620..eabafd1 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -630,6 +630,9 @@ SwTableAutoFmt::SwTableAutoFmt( const SwTableAutoFmt& rNew )
SwTableAutoFmt& SwTableAutoFmt::operator=( const SwTableAutoFmt& rNew )
{
+ if (&rNew == this)
+ return *this;
+
for( sal_uInt8 n = 0; n < 16; ++n )
{
if( aBoxAutoFmt[ n ] )
More information about the Libreoffice-commits
mailing list