[Libreoffice-commits] core.git: svx/source

Thorsten Behrens tbehrens at suse.com
Mon Mar 18 03:10:54 PDT 2013


 svx/source/dialog/dlgctrl.cxx |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

New commits:
commit b32c31cc9c1dc11251196a4bfbba7d8848581d43
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Mon Mar 18 11:02:54 2013 +0100

    Fix crash in fdo#62119
    
    This fixes the crash, not the missing line styles.
    
    Change-Id: I762fb58831ac44bdab7f02101acf7ccb58172ee9

diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index e357246..4d65bb7 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -917,6 +917,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeColorLB(Window *pParent, Vc
 
 void ColorLB::Fill( const XColorListRef &pColorTab )
 {
+    if( !pColorTab.is() )
+        return;
+
     long nCount = pColorTab->Count();
     XColorEntry* pEntry;
     SetUpdateMode( sal_False );
@@ -972,6 +975,9 @@ HatchingLB::HatchingLB( Window* pParent, ResId Id, sal_Bool bUserDraw /*= sal_Tr
 
 void HatchingLB::Fill( const XHatchListRef &pList )
 {
+    if( !pList.is() )
+        return;
+
     mpList = pList;
     XHatchEntry* pEntry;
     long nCount = pList->Count();
@@ -1106,6 +1112,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeGradientLB(Window *pParent,
 
 void GradientLB::Fill( const XGradientListRef &pList )
 {
+    if( !pList.is() )
+        return;
+
     mpList = pList;
     XGradientEntry* pEntry;
     long nCount = pList->Count();
@@ -1288,6 +1297,9 @@ void BitmapLB::SetVirtualDevice()
 
 void BitmapLB::Fill( const XBitmapListRef &pList )
 {
+    if( !pList.is() )
+        return;
+
     mpList = pList;
     XBitmapEntry* pEntry;
     const long nCount(pList->Count());
@@ -1455,6 +1467,9 @@ void FillTypeLB::Fill()
 
 void LineLB::Fill( const XDashListRef &pList )
 {
+    if( !pList.is() )
+        return;
+
     long nCount = pList->Count();
     XDashEntry* pEntry;
     SetUpdateMode( sal_False );
@@ -1524,6 +1539,9 @@ void LineLB::Modify( XDashEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp )
 
 void LineEndLB::Fill( const XLineEndListRef &pList, sal_Bool bStart )
 {
+    if( !pList.is() )
+        return;
+
     long nCount = pList->Count();
     XLineEndEntry* pEntry;
     VirtualDevice aVD;


More information about the Libreoffice-commits mailing list