From dfddb1d3029e1f129e94b5a2e802f32dd03fe188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 17 Jan 2014 17:10:19 +0000 Subject: [PATCH] need to call SetFrameSize on Resize otherwise if the crop tab is not the initial tab shown then it doesn't repaint correctly when it is shown Change-Id: Ie61819fe3fb089b716547fa5e54352ae04fd8087 --- cui/source/inc/grfpage.hxx | 1 + cui/source/tabpages/grfpage.cxx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/cui/source/inc/grfpage.hxx b/cui/source/inc/grfpage.hxx index 474565ddaf02..0b13e11b096b 100644 --- a/cui/source/inc/grfpage.hxx +++ b/cui/source/inc/grfpage.hxx @@ -36,6 +36,7 @@ public: SvxCropExample( Window* pPar, WinBits nStyle ); virtual void Paint( const Rectangle& rRect ); + virtual void Resize(); virtual Size GetOptimalSize() const; void SetTopLeft( const Point& rNew ) { aTopLeft = rNew; } diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 1a2592fd4f06..6b27019b1e9b 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -786,6 +786,11 @@ void SvxCropExample::Paint( const Rectangle& ) DrawRect( aRect ); } +void SvxCropExample::Resize() +{ + SetFrameSize(aFrameSize); +} + void SvxCropExample::SetFrameSize( const Size& rSz ) { aFrameSize = rSz;