The offending lines:
+ // set default color
+ if( cups->currentPPD()->color_device )
+ options.color->setChecked(true);
+ else
+ options.grayscale->setChecked(true);
and later:
+ // set default color
+ if( cups.currentPPD()->color_device )
+ setColorMode(Color);
+ else
+ setColorMode(GrayScale);
They should be changed to:
if ( cups->currentPPD() )
{
// set default color
if( cups->currentPPD()->color_device ) options.color->setChecked(true);
else options.grayscale->setChecked(true);
}
and:
if ( cups.currentPPD() )
{
// set default color
if( cups.currentPPD()->color_device ) setColorMode(Color);
else setColorMode(GrayScale);
}
(I matched the coding style of the surrounding code.)
I'm going to try changing this in the Fedora package and will attach a fixed patch if this works.
That patch as is causes https:/ /bugzilla. redhat. com/show_ bug.cgi? id=566304
The offending lines: D()->color_ device ) color-> setChecked( true); grayscale- >setChecked( true); ()->color_ device ) Color); GrayScale) ;
+ // set default color
+ if( cups->currentPP
+ options.
+ else
+ options.
and later:
+ // set default color
+ if( cups.currentPPD
+ setColorMode(
+ else
+ setColorMode(
They should be changed to: D()->color_ device )
options. color-> setChecked( true);
options. grayscale- >setChecked( true); ()->color_ device )
setColorMode (Color) ;
setColorMode (GrayScale) ;
if ( cups->currentPPD() )
{
// set default color
if( cups->currentPP
else
}
and:
if ( cups.currentPPD() )
{
// set default color
if( cups.currentPPD
else
}
(I matched the coding style of the surrounding code.)
I'm going to try changing this in the Fedora package and will attach a fixed patch if this works.