← easystroke

Don't try to record timeouts if timeout gestures are disabled

789498c3d7e1882bc82a5282275276bc2759b838 · Thomas Jaeger · Jan 13, 2010 11:21

This would lead to a crash if there was a timeout during recording.

https://sourceforge.net/apps/trac/easystroke/ticket/33
https://bugzilla.redhat.com/show_bug.cgi?id=549294

+1 −1 · 1 file changed

  • main.cc +1 −1
diff --git a/main.cc b/main.cc
index 4073eee..2b6ba11 100644
--- a/main.cc
+++ b/main.cc
@@ -491,7 +491,7 @@ class AdvancedHandler : public Handler {
 		}
 public:
 	static Handler *create(RStroke s, RTriple e, guint b1, guint b2, RPreStroke replay) {
-		if (stroke_action)
+		if (stroke_action && s)
 			return new AdvancedStrokeActionHandler(s, e);
 		else
 			return new AdvancedHandler(s, e, b1, b2, replay);