Revision: 4885
http://sourceforge.net/p/vexi/code/4885
Author: clrg
Date: 2016-10-14 15:57:07 +0000 (Fri, 14 Oct 2016)
Log Message:
-----------
Fix stackoverflow when trying to change cursor during Move trap.
Modified Paths:
--------------
branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp
Modified: branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp
===================================================================
--- branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp
2016-09-30 20:01:38 UTC (rev 4884)
+++ branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp
2016-10-14 15:57:07 UTC (rev 4885)
@@ -2593,6 +2593,8 @@
case "clear": isReadOnly(name);
case "mouse": isReadOnly(name);
case "cursor":
+ // avert stackoverflow caused by cursor put in Move invoking
Move
+ if (get(name) == value) return;
// only need to worry about updating the cursor if the
// mouse is inside thisbox and it is part of a surface
Surface s = test(DISPLAY|MOUSEINSIDE) ? getSurface() : null;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn