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
This commit is contained in:
Caolán McNamara
2014-01-17 17:10:19 +00:00
parent 285d62c554
commit dfddb1d302
2 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ public:
SvxCropExample( Window* pPar, WinBits nStyle ); SvxCropExample( Window* pPar, WinBits nStyle );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Resize();
virtual Size GetOptimalSize() const; virtual Size GetOptimalSize() const;
void SetTopLeft( const Point& rNew ) { aTopLeft = rNew; } void SetTopLeft( const Point& rNew ) { aTopLeft = rNew; }

View File

@@ -786,6 +786,11 @@ void SvxCropExample::Paint( const Rectangle& )
DrawRect( aRect ); DrawRect( aRect );
} }
void SvxCropExample::Resize()
{
SetFrameSize(aFrameSize);
}
void SvxCropExample::SetFrameSize( const Size& rSz ) void SvxCropExample::SetFrameSize( const Size& rSz )
{ {
aFrameSize = rSz; aFrameSize = rSz;