diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-28 17:03:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-28 17:07:10 +0100 |
commit | 831b8751fc9f423fd4e459623e54801c0a020eb3 (patch) | |
tree | 6f9f8ad45be0e0d9341b9b27c5485ac6bbabbfd0 /svx/source/dialog | |
parent | f7799c9317cc3187ae8aaedc36f829d478a59e77 (diff) |
svx: fix Writer's insert -> frame crash
(regression from 6e61ecd09679a66060f932835622821d39e92f01)
Change-Id: Ifd8d482031b7fce4341d488f7276620e52f549ed
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |