]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.worlds: deactivate world before calling the ui-error-hook
authorJoe Groff <arcata@gmail.com>
Wed, 24 Feb 2010 06:55:57 +0000 (22:55 -0800)
committerJoe Groff <arcata@gmail.com>
Wed, 24 Feb 2010 06:55:57 +0000 (22:55 -0800)
basis/ui/gadgets/worlds/worlds.factor

index eea2933b0461d22eaa21378e4f8c5d83efacfdae..05466f4673efbe3bff52b37cd80f553a690894c6 100644 (file)
@@ -217,8 +217,7 @@ ui-error-hook [ [ rethrow ] ] initialize
                 dup [ draw-world* ] with-gl-context
                 flush-layout-cache-hook get call( -- )
             ] [
-                over <world-error> ui-error
-                f >>active? drop
+                swap f >>active? <world-error> ui-error
             ] recover
         ] with-variable
     ] [ drop ] if ;