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

Miklos Vajna vmiklos at collabora.co.uk
Fri Mar 28 09:08:59 PDT 2014


 svx/source/dialog/dlgctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 831b8751fc9f423fd4e459623e54801c0a020eb3
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Mar 28 17:03:19 2014 +0100

    svx: fix Writer's insert -> frame crash
    
    (regression from 6e61ecd09679a66060f932835622821d39e92f01)
    
    Change-Id: Ifd8d482031b7fce4341d488f7276620e52f549ed

diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 2364a2a..8bfa03d 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1389,7 +1389,7 @@ void GradientLB::Modify( const XGradientEntry& rEntry, sal_Int32 nPos, const Bit
 void GradientLB::SelectEntryByList( const XGradientListRef &pList, const OUString& rStr,
                                     const XGradient& rGradient, sal_uInt16 nDist )
 {
-    long nCount = pList->Count();
+    long nCount = pList.get() ? pList->Count() : 0;
     XGradientEntry* pEntry;
     bool bFound = false;
     OUString aStr;


More information about the Libreoffice-commits mailing list