We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42920f commit 51baba2Copy full SHA for 51baba2
src/gui/src/gui.cpp
@@ -1467,7 +1467,7 @@ void Gui::gifAddFrame(const int key,
1467
double dbu_per_pixel,
1468
std::optional<int> delay)
1469
{
1470
- if (key >= gifs_.size()) {
+ if (key >= gifs_.size() || gifs_[key] == nullptr) {
1471
logger_->warn(utl::GUI, 51, "GIF not active");
1472
return;
1473
}
@@ -1551,7 +1551,7 @@ void Gui::gifAddFrame(const int key,
1551
1552
void Gui::gifEnd(const int key)
1553
1554
1555
logger_->warn(utl::GUI, 58, "GIF not active");
1556
1557
0 commit comments