]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed issue where scrolling calls a null pointer
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 22 Dec 2016 02:29:45 +0000 (21:29 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 22 Dec 2016 02:29:45 +0000 (21:29 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index f36d2fbfa1bb0ba68b0ed83b15e546dd516a91ef..3eea77563c8414eaa51ccc22c91df2c537270488 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -235,7 +235,8 @@ static void mouse_handler(MouseAct act, MouseBtn btn, int x, int y) {
                 MouseBtns[btn].count = 1;
         } else if (MouseBtns[btn].count > 0) {
             /* execute the action on button release */
-            MouseActs[btn](id, MouseBtns[btn].count, row, col);
+            if (MouseActs[btn])
+                MouseActs[btn](id, MouseBtns[btn].count, row, col);
         }
     }
 }