Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix crash on style dock apply with no layer
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
src/app/qgsmapstylingwidget.cpp
|
@@ -97,6 +97,9 @@ void QgsMapStylingWidget::setLayer( QgsMapLayer *layer ) |
|
|
void QgsMapStylingWidget::apply() |
|
|
{ |
|
|
QString undoName = "Style Change"; |
|
|
if ( !mCurrentLayer ) |
|
|
return; |
|
|
|
|
|
if ( mCurrentLayer->type() == QgsMapLayer::VectorLayer ) |
|
|
{ |
|
|
QWidget* current = mWidgetArea->widget(); |
|
|