Skip to content

Commit

Permalink
[layouts] Fix svg parameters cannot be changed if a parameterised
Browse files Browse the repository at this point in the history
svg is embedded instead of linked
  • Loading branch information
nyalldawson committed Jun 3, 2020
1 parent 95f9187 commit d9c87b3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/layout/qgslayoutpicturewidget.cpp
Expand Up @@ -384,13 +384,6 @@ void QgsLayoutPictureWidget::updateSvgParamGui( bool resetValues )
return;

QString picturePath = mPicture->picturePath();
if ( !picturePath.endsWith( QLatin1String( ".svg" ), Qt::CaseInsensitive ) )
{
mFillColorButton->setEnabled( false );
mStrokeColorButton->setEnabled( false );
mStrokeWidthSpinBox->setEnabled( false );
return;
}

//activate gui for svg parameters only if supported by the svg file
bool hasFillParam, hasFillOpacityParam, hasStrokeParam, hasStrokeWidthParam, hasStrokeOpacityParam;
Expand Down

0 comments on commit d9c87b3

Please sign in to comment.