summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-20 17:24:08 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:01:48 +0100
commit8fb4672aef888fc5a582ca9508799ecdbe777c42 (patch)
tree346757e6c1bc9664a53270f868a1762edf094e2d /vcl/source
parentd1091fd50adb1c01d1b1393fd662278611f9e7e1 (diff)
ScopedVclPtr: needs an = operator to make life flow.
Without this, assigning to a ScopedVclPtr instance thus: pScopedVclPtr = new Foo(); constructed a new intermediate ScopedVCLPtr, used a default assignment operator, unhelpfully disposing the new Foo before it could make it to pScopedVclPtr => add operator, and hide problematic constructors. Change-Id: Icc0da962938bf115eac0c24a6a76cfeb66ddf23a
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 2af94700afce..b04bad14da0f 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2264,8 +2264,7 @@ vcl::Font Window::GetPointFont() const
void Window::Show( bool bVisible, sal_uInt16 nFlags )
{
-
- if ( mpWindowImpl->mbVisible == bVisible )
+ if ( IsDisposed() || mpWindowImpl->mbVisible == bVisible )
return;
ImplDelData aDogTag( this );