File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,22 @@ void QgsAtlasComposition::prepareMap( QgsComposerMap* map )
436
436
QgsRectangle new_extent = mTransformedFeatureBounds ;
437
437
QgsRectangle mOrigExtent = map->extent ();
438
438
439
- if ( map->atlasScalingMode () == QgsComposerMap::Fixed )
439
+ // sanity check - only allow fixed scale mode for point layers
440
+ bool isPointLayer = false ;
441
+ switch ( mCoverageLayer ->wkbType () )
442
+ {
443
+ case QGis::WKBPoint:
444
+ case QGis::WKBPoint25D:
445
+ case QGis::WKBMultiPoint:
446
+ case QGis::WKBMultiPoint25D:
447
+ isPointLayer = true ;
448
+ break ;
449
+ default :
450
+ isPointLayer = false ;
451
+ break ;
452
+ }
453
+
454
+ if ( map->atlasScalingMode () == QgsComposerMap::Fixed || isPointLayer )
440
455
{
441
456
// only translate, keep the original scale (i.e. width x height)
442
457
You can’t perform that action at this time.
0 commit comments