Crash when moving crop window using SHIFT+Mouse, fixes #6290

This commit is contained in:
Ingo Weyrich
2021-06-24 12:01:18 +02:00
parent 3cf3562505
commit 4ab54c9fda

View File

@@ -764,7 +764,7 @@ bool RTWindow::keyPressed (GdkEventKey* event)
bool RTWindow::keyReleased(GdkEventKey *event)
{
if (mainNB->get_current_page() == mainNB->page_num(*fpanel)) {
if (fpanel && mainNB->get_current_page() == mainNB->page_num(*fpanel)) {
return fpanel->handleShortcutKeyRelease(event);
}
return false;