Revision: 4478
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4478&view=rev
Author:   ossman_
Date:     2011-06-09 08:33:29 +0000 (Thu, 09 Jun 2011)

Log Message:
-----------
We have no cursor initially, and never if the server doesn't support local
cursors, so make sure we don't pass a NULL pointer to FLTK.

Modified Paths:
--------------
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2011-06-09 08:32:49 UTC (rev 4477)
+++ trunk/vncviewer/Viewport.cxx        2011-06-09 08:33:29 UTC (rev 4478)
@@ -341,7 +341,8 @@
   case FL_ENTER:
     // Yes, we would like some pointer events please!
 #ifdef HAVE_FLTK_CURSOR
-    window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
+    if (cursor)
+      window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
 #endif
     return 1;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to