[Libreoffice-commits] .: editeng/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Fri Apr 20 01:34:28 PDT 2012


 editeng/source/items/frmitems.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 1489254311e75a379a129bceeab49643ebea04e0
Author: Dezsi Szabolcs <dezsiszabi at hotmail.com>
Date:   Fri Apr 20 14:10:56 2012 +0530

    fdo#47436: Fixed crash while opening odt file.

diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index efdcadb..d4b876b 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1951,7 +1951,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
                 for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n)
                 {
                     editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) );
-                    pLine->SetStyle( eBorderStyle );
+                    if( pLine )
+                        pLine->SetStyle( eBorderStyle );
                 }
                 return sal_True;
             }


More information about the Libreoffice-commits mailing list