Code

Fixed crash when invoked and no profile is set.
authorjoncruz <joncruz@users.sourceforge.net>
Mon, 31 Aug 2009 05:21:41 +0000 (05:21 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Mon, 31 Aug 2009 05:21:41 +0000 (05:21 +0000)
src/widgets/sp-color-icc-selector.cpp

index 392a52c6d0cf944b67350d459329577d579f296c..80a551f6a660b2b3358d016d655ebba14fc9822b 100644 (file)
@@ -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<gint>(i) != ignore ) {
                     icUInt16Number* scratch = getScratch();