mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Correctly set antialiasing flag
This commit is contained in:
		
							parent
							
								
									b18e2607ef
								
							
						
					
					
						commit
						9001bf71a0
					
				@ -25,6 +25,7 @@ static QgsRenderContext _createRenderContext( double mupp, double dpi, double sc
 | 
				
			|||||||
  context.setScaleFactor( dpi / 25.4 );
 | 
					  context.setScaleFactor( dpi / 25.4 );
 | 
				
			||||||
  context.setRendererScale( scale );
 | 
					  context.setRendererScale( scale );
 | 
				
			||||||
  context.setMapToPixel( QgsMapToPixel( mupp ) );
 | 
					  context.setMapToPixel( QgsMapToPixel( mupp ) );
 | 
				
			||||||
 | 
					  context.setFlag( Qgis::RenderContextFlag::Antialiasing, true );
 | 
				
			||||||
  return context;
 | 
					  return context;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user