Skip to content

Commit

Permalink
also set picture mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Jun 29, 2021
1 parent 3bfdd75 commit cc83734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layout/qgslayoutpicturewidget.cpp
Expand Up @@ -473,7 +473,7 @@ void QgsLayoutPictureWidget::sourceChanged( const QString &source )
if ( mPicture )
{
mPicture->beginCommand( tr( "Change Picture" ) );
mPicture->setPicturePath( source );
mPicture->setPicturePath( source, mRadioSVG->isChecked() ? QgsLayoutItemPicture::FormatSVG : QgsLayoutItemPicture::FormatRaster );
mPicture->update();
mPicture->endCommand();
updateSvgParamGui();
Expand Down

0 comments on commit cc83734

Please sign in to comment.