From 831b8751fc9f423fd4e459623e54801c0a020eb3 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 28 Mar 2014 17:03:19 +0100 Subject: svx: fix Writer's insert -> frame crash (regression from 6e61ecd09679a66060f932835622821d39e92f01) Change-Id: Ifd8d482031b7fce4341d488f7276620e52f549ed --- svx/source/dialog/dlgctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 2364a2a1c905..8bfa03d92e91 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; -- cgit