Skip to content

Commit 0283c5b

Browse files
author
mhugent
committed
Fix for bug 1488
git-svn-id: http://svn.osgeo.org/qgis/trunk@10961 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a90f621 commit 0283c5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/composer/qgscomposeritemwidget.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "qgscomposeritemwidget.h"
1919
#include "qgscomposeritem.h"
20+
#include "qgscomposermap.h"
2021
#include "qgsitempositiondialog.h"
2122
#include "qgspoint.h"
2223
#include <QColorDialog>
@@ -74,6 +75,13 @@ void QgsComposerItemWidget::on_mBackgroundColorButton_clicked()
7475

7576
newBackgroundColor.setAlpha( mOpacitySlider->value() );
7677
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+
}
7785
mItem->update();
7886
}
7987

0 commit comments

Comments
 (0)