Skip to content

Commit

Permalink
Fix typo in the QgsSymbol::exportImage function leading to clipped re…
Browse files Browse the repository at this point in the history
…nders for non-square sizes
  • Loading branch information
nirvn authored and nyalldawson committed Nov 11, 2024
1 parent 3381304 commit d6b8c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgssymbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ void QgsSymbol::exportImage( const QString &path, const QString &format, QSize s
QSvgGenerator generator;
generator.setFileName( path );
generator.setSize( size );
generator.setViewBox( QRect( 0, 0, size.height(), size.height() ) );
generator.setViewBox( QRect( 0, 0, size.width(), size.height() ) );

QPainter painter( &generator );
drawPreviewIcon( &painter, size );
Expand Down

0 comments on commit d6b8c51

Please sign in to comment.