mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +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)
|
if (!m_image)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (layer->is_selected())
|
if (layer && layer->is_selected())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (size_t i = 0; i < m_image->layer_count(); ++i) {
|
for (size_t i = 0; i < m_image->layer_count(); ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue