mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
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: be4485fe85
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)
|
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