Skip to content
Permalink
Browse files

Fix for bug 1488

git-svn-id: http://svn.osgeo.org/qgis/trunk@10961 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jun 19, 2009
1 parent a90f621 commit 0283c5be7b13ebe644cb2e57c21b0dcbeff6582d
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/composer/qgscomposeritemwidget.cpp
@@ -17,6 +17,7 @@

#include "qgscomposeritemwidget.h"
#include "qgscomposeritem.h"
#include "qgscomposermap.h"
#include "qgsitempositiondialog.h"
#include "qgspoint.h"
#include <QColorDialog>
@@ -74,6 +75,13 @@ void QgsComposerItemWidget::on_mBackgroundColorButton_clicked()

newBackgroundColor.setAlpha( mOpacitySlider->value() );
mItem->setBrush( QBrush( QColor( newBackgroundColor ), Qt::SolidPattern ) );
//if the item is a composer map, we need to regenerate the map image
//because it usually is cached
QgsComposerMap* cm = dynamic_cast<QgsComposerMap*>(mItem);
if(cm)
{
cm->cache();
}
mItem->update();
}

0 comments on commit 0283c5b

Please sign in to comment.
You can’t perform that action at this time.