summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3218c2c)
raw | patch | inline | side by side (parent: 3218c2c)
author | Jon A. Cruz <jon@joncruz.org> | |
Wed, 16 Jun 2010 08:21:01 +0000 (01:21 -0700) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Wed, 16 Jun 2010 08:21:01 +0000 (01:21 -0700) |
src/widgets/sp-color-notebook.cpp | patch | blob | history |
index a249786fff2769bd6f0d0004fac869eb3fbc1a43..6c5113084cace30228036351fc6aefff5f042dd5 100644 (file)
}
}
+// TODO pass in param so as to avoid the need for SP_ACTIVE_DOCUMENT
void ColorNotebook::_updateRgbaEntry( const SPColor& color, gfloat alpha )
{
g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
gtk_widget_set_sensitive (_box_toomuchink, false);
if (color.icc){
Inkscape::ColorProfile* prof = SP_ACTIVE_DOCUMENT->profileManager->find(color.icc->colorProfile.c_str());
- if (prof->getColorSpace() == icSigCmykData || prof->getColorSpace() == icSigCmyData){
+ if ( prof && ( (prof->getColorSpace() == icSigCmykData) || (prof->getColorSpace() == icSigCmyData) ) ) {
gtk_widget_show(GTK_WIDGET(_box_toomuchink));
double ink_sum = 0;
for (unsigned int i=0; i<color.icc->colors.size(); i++){