PixelPaint: LayerListWidget::set_selected_layer now handles nullptr
This commit is contained in:
parent
87290e300e
commit
be4485fe85
Notes:
sideshowbarker
2024-07-18 03:12:15 +09:00
Author: https://github.com/GalHorowitz Commit: https://github.com/SerenityOS/serenity/commit/be4485fe85e Pull-request: https://github.com/SerenityOS/serenity/pull/10315
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
Reference in a new issue