summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolkit/source/layout/vcl/wbutton.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/layout/vcl/wbutton.cxx b/toolkit/source/layout/vcl/wbutton.cxx
index 96e6aeb5d251..7df8e36811c4 100644
--- a/toolkit/source/layout/vcl/wbutton.cxx
+++ b/toolkit/source/layout/vcl/wbutton.cxx
@@ -490,7 +490,7 @@ protected:
it != maAdvanced.end(); ++it )
if ( *it == w )
{
- lst.erase( it );
+ it = lst.erase( it );
return *it;
}
return 0;