From: joncruz Date: Mon, 31 Aug 2009 05:21:41 +0000 (+0000) Subject: Fixed crash when invoked and no profile is set. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a0c7e0e988e2ce921c72d28e555d18bfeb0b6b5e;p=inkscape.git Fixed crash when invoked and no profile is set. --- diff --git a/src/widgets/sp-color-icc-selector.cpp b/src/widgets/sp-color-icc-selector.cpp index 392a52c6d..80a551f6a 100644 --- a/src/widgets/sp-color-icc-selector.cpp +++ b/src/widgets/sp-color-icc-selector.cpp @@ -753,7 +753,7 @@ void ColorICCSelector::_updateSliders( gint ignore ) gtk_adjustment_set_value( _fooAdj[i], val ); } - if ( _prof->getTransfToSRGB8() ) { + if ( _prof && _prof->getTransfToSRGB8() ) { for ( guint i = 0; i < _profChannelCount; i++ ) { if ( static_cast(i) != ignore ) { icUInt16Number* scratch = getScratch();