@@ -330,6 +330,7 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
330
330
331
331
QgsCompositionWidget* compositionWidget = new QgsCompositionWidget ( mGeneralDock , mComposition );
332
332
connect ( mComposition , SIGNAL ( paperSizeChanged () ), compositionWidget, SLOT ( displayCompositionWidthHeight () ) );
333
+ connect ( this , SIGNAL ( printAsRasterChanged ( bool ) ), compositionWidget, SLOT ( setPrintAsRasterCheckBox ( bool ) ) );
333
334
mGeneralDock ->setWidget ( compositionWidget );
334
335
335
336
// undo widget
@@ -1818,6 +1819,7 @@ void QgsComposer::readXML( const QDomElement& composerElem, const QDomDocument&
1818
1819
// create compositionwidget
1819
1820
QgsCompositionWidget* compositionWidget = new QgsCompositionWidget ( mGeneralDock , mComposition );
1820
1821
QObject::connect ( mComposition , SIGNAL ( paperSizeChanged () ), compositionWidget, SLOT ( displayCompositionWidthHeight () ) );
1822
+ QObject::connect ( this , SIGNAL ( printAsRasterChanged ( bool ) ), compositionWidget, SLOT ( setPrintAsRasterCheckBox ( bool ) ) );
1821
1823
mGeneralDock ->setWidget ( compositionWidget );
1822
1824
1823
1825
// read and restore all the items
@@ -2087,14 +2089,16 @@ void QgsComposer::showBlendModePrintingWarning()
2087
2089
m->setCheckBoxVisible ( true );
2088
2090
m->showMessage ( true );
2089
2091
2090
- // also need to make sure composer print as raster checkbox is updated
2091
2092
if ( m->checkBoxState () == Qt::Checked )
2092
2093
{
2093
2094
mComposition ->setPrintAsRaster ( true );
2095
+ // make sure print as raster checkbox is updated
2096
+ emit printAsRasterChanged ( true );
2094
2097
}
2095
2098
else
2096
2099
{
2097
2100
mComposition ->setPrintAsRaster ( false );
2101
+ emit printAsRasterChanged ( false );
2098
2102
}
2099
2103
2100
2104
delete m;
0 commit comments