Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for bug 1488
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10961 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 19, 2009
1 parent 69f76cc commit abf7b0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/composer/qgscomposeritemwidget.cpp
Expand Up @@ -17,6 +17,7 @@

#include "qgscomposeritemwidget.h"
#include "qgscomposeritem.h"
#include "qgscomposermap.h"
#include "qgsitempositiondialog.h"
#include "qgspoint.h"
#include <QColorDialog>
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit abf7b0a

Please sign in to comment.