mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix for scalebar not responding to map changes after reading from project file and template
git-svn-id: http://svn.osgeo.org/qgis/trunk@12619 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
e6faf8ff46
commit
6a4fbd781b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user