Author: sanel.z
Date: 2007-06-05 11:10:41 -0400 (Tue, 05 Jun 2007)
New Revision: 5871
Log:
STR #1590 fixed thanks to derek.signalmarketing and Greg.
Modified:
trunk/src/Cursor.cxx
Modified: trunk/src/Cursor.cxx
===================================================================
--- trunk/src/Cursor.cxx 2007-06-03 18:36:44 UTC (rev 5870)
+++ trunk/src/Cursor.cxx 2007-06-05 15:10:41 UTC (rev 5871)
@@ -404,8 +404,12 @@
FL_API fltk::Cursor *fltk::cursor(void *raw) {
fltk::Cursor *c = new fltk::Cursor;
c->resource=0;
- // This overwrites the data, mask, and hotspot:
- memcpy(c->data, raw, sizeof(::Cursor));
+ if(raw) {
+ // This overwrites the data, mask, and hotspot:
+ memcpy(c->data, raw, sizeof(::Cursor));
+ } else
+ memset(c->data, 0, sizeof(::Cursor));
+
return c;
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit