mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
PixelPaint: LayerListWidget::set_selected_layer now handles nullptr
This commit is contained in:
parent
87290e300e
commit
be4485fe85
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ void LayerListWidget::set_selected_layer(Layer* layer)
|
|||
if (!m_image)
|
||||
return;
|
||||
|
||||
if (layer->is_selected())
|
||||
if (layer && layer->is_selected())
|
||||
return;
|
||||
|
||||
for (size_t i = 0; i < m_image->layer_count(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue