diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 32943402e3b7..2d50217551f0 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -944,9 +944,8 @@ void VCLXWindow::dispose( ) throw(::com::sun::star::uno::RuntimeException, std: { VclPtr<OutputDevice> pOutDev = GetOutputDevice(); SetWindow( NULL ); // so that handlers are logged off, if necessary (virtual) - SetOutputDevice( pOutDev ); - pOutDev.disposeAndClear(); SetOutputDevice( NULL ); + pOutDev.disposeAndClear(); } // #i14103# dispose the accessible context after the window has been destroyed, |