From 0792e97bd7ea6f23c908bdebc4826b08c6265d55 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 23 May 2015 19:44:15 +0100 Subject: VclPtr - add compat methods for old-style focus / notification. The previous code would only invoke Window:: methods by the time we hit the destructor; do the same to avoid fixing more scattered crashers for now. Change-Id: Ibdcd1290309bb7fc31a44d534c52d357da022591 Reviewed-on: https://gerrit.libreoffice.org/15880 Tested-by: Jenkins Reviewed-by: Michael Meeks --- vcl/source/control/fixed.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/control/fixed.cxx') diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx index 9d2c38fe8155..92ff28c15aa6 100644 --- a/vcl/source/control/fixed.cxx +++ b/vcl/source/control/fixed.cxx @@ -840,7 +840,7 @@ void FixedBitmap::DataChanged( const DataChangedEvent& rDCEvt ) void FixedBitmap::SetBitmap( const Bitmap& rBitmap ) { maBitmap = rBitmap; - StateChanged( StateChangedType::Data ); + CompatStateChanged( StateChangedType::Data ); queue_resize(); } @@ -1018,7 +1018,7 @@ void FixedImage::SetImage( const Image& rImage ) if ( rImage != maImage ) { maImage = rImage; - StateChanged( StateChangedType::Data ); + CompatStateChanged( StateChangedType::Data ); queue_resize(); } } -- cgit