Skip to content
Permalink
Browse files

[layouts] Fix svg parameters cannot be changed if a parameterised

svg is embedded instead of linked
  • Loading branch information
nyalldawson committed Jun 2, 2020
1 parent 95f9187 commit d9c87b37732edabcc5ee9f599e0c76cd3a1f220e
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/gui/layout/qgslayoutpicturewidget.cpp
@@ -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;

0 comments on commit d9c87b3

Please sign in to comment.
You can’t perform that action at this time.