Skip to content

Commit

Permalink
Fix for scalebar not responding to map changes after reading from pro…
Browse files Browse the repository at this point in the history
…ject file and template

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12619 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 25, 2009
1 parent b43deaf commit e873cd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/composer/qgscomposerscalebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
{
const QgsComposerMap* composerMap = mComposition->getComposerMapById( mapId );
mComposerMap = composerMap;
if ( mComposerMap )
{
connect( mComposerMap, SIGNAL( extentChanged() ), this, SLOT( updateSegmentSize() ) );
connect( mComposerMap, SIGNAL( destroyed( QObject* ) ), this, SLOT( invalidateCurrentMap() ) );
}
}

refreshSegmentMillimeters();
Expand Down

0 comments on commit e873cd2

Please sign in to comment.