Skip to content
Permalink
Browse files

Fix for scalebar not responding to map changes after reading from pro…

…ject file and template

git-svn-id: http://svn.osgeo.org/qgis/trunk@12619 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 25, 2009
1 parent e6faf8f commit 6a4fbd781b6c35a4c7f7c235c56717b22b4ea536
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/composer/qgscomposerscalebar.cpp
@@ -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();

0 comments on commit 6a4fbd7

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