We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a90f621 commit 0283c5bCopy full SHA for 0283c5b
src/app/composer/qgscomposeritemwidget.cpp
@@ -17,6 +17,7 @@
17
18
#include "qgscomposeritemwidget.h"
19
#include "qgscomposeritem.h"
20
+#include "qgscomposermap.h"
21
#include "qgsitempositiondialog.h"
22
#include "qgspoint.h"
23
#include <QColorDialog>
@@ -74,6 +75,13 @@ void QgsComposerItemWidget::on_mBackgroundColorButton_clicked()
74
75
76
newBackgroundColor.setAlpha( mOpacitySlider->value() );
77
mItem->setBrush( QBrush( QColor( newBackgroundColor ), Qt::SolidPattern ) );
78
+ //if the item is a composer map, we need to regenerate the map image
79
+ //because it usually is cached
80
+ QgsComposerMap* cm = dynamic_cast<QgsComposerMap*>(mItem);
81
+ if(cm)
82
+ {
83
+ cm->cache();
84
+ }
85
mItem->update();
86
}
87
0 commit comments