Skip to content

Commit

Permalink
Condense logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 24, 2020
1 parent ea3eb72 commit b6ae643
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gui/symbology/qgssymbollayerwidget.cpp
Expand Up @@ -346,9 +346,7 @@ void QgsSimpleLineSymbolLayerWidget::setSymbolLayer( QgsSymbolLayer *layer )

whileBlocking( mCheckAlignDash )->setChecked( mLayer->alignDashPattern() );
mCheckDashCorners->setEnabled( mLayer->alignDashPattern() );
whileBlocking( mCheckDashCorners )->setChecked( mLayer->tweakDashPatternOnCorners() );
if ( !mLayer->alignDashPattern() )
mCheckDashCorners->setChecked( false );
whileBlocking( mCheckDashCorners )->setChecked( mLayer->tweakDashPatternOnCorners() && mLayer->alignDashPattern() );

updatePatternIcon();

Expand Down

0 comments on commit b6ae643

Please sign in to comment.