]> git.mxchange.org Git - simgear.git/commitdiff
canvas::Widget: pass ghost to onRemove handler
authorThomas Geymayer <tomgey@gmail.com>
Sun, 29 Jun 2014 09:57:12 +0000 (11:57 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 29 Jun 2014 09:57:12 +0000 (11:57 +0200)
simgear/canvas/layout/NasalWidget.cxx

index 05a6873fcd75b12afdf0565d1760ac60b0af41f5..6f5d5a1d8b9bc820a1ee010c6abbf0091fecb591 100644 (file)
@@ -85,7 +85,7 @@ namespace canvas
       Deleter del =
         nasal::get_member<Deleter>(c, _nasal_impl.get_naRef(), "onRemove");
       if( del )
-        del(_nasal_impl.get_naRef());
+        del(nasal::to_nasal(c, this));
     }
     catch( std::exception const& ex )
     {