summaryrefslogtreecommitdiff
path: root/src/dyetool/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dyetool/gui/viewport.cpp')
-rw-r--r--src/dyetool/gui/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dyetool/gui/viewport.cpp b/src/dyetool/gui/viewport.cpp
index bb86a0401..799f6acce 100644
--- a/src/dyetool/gui/viewport.cpp
+++ b/src/dyetool/gui/viewport.cpp
@@ -207,7 +207,7 @@ void Viewport::mouseReleased(MouseEvent &event)
if (eventButton == MouseButton::LEFT)
{
// long button press
- if (gui && gui->isLongPress())
+ if ((gui != nullptr) && gui->isLongPress())
{
if (openContextMenu(event))
{