From: Jon A. Cruz Date: Tue, 23 Mar 2010 07:32:40 +0000 (-0700) Subject: Add needed null check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02bc765f3cee0217b003270c556efcdf08938549;p=inkscape.git Add needed null check. --- diff --git a/src/widgets/swatch-selector.cpp b/src/widgets/swatch-selector.cpp index 602adec4f..a6f5133b7 100644 --- a/src/widgets/swatch-selector.cpp +++ b/src/widgets/swatch-selector.cpp @@ -108,7 +108,7 @@ void SwatchSelector::_changedCb(SPColorSelector */*csel*/, void *data) // TODO might have to block cycles - if (swsel->_gsel) { + if (swsel->_gsel && swsel->_gsel->getVector()) { SPGradient *gradient = swsel->_gsel->getVector(); SPGradient *ngr = sp_gradient_ensure_vector_normalized(gradient); if (ngr != gradient) {