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:
parent
285d62c554
commit
dfddb1d302
@ -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; }
|
||||
|
@ -786,6 +786,11 @@ void SvxCropExample::Paint( const Rectangle& )
|
||||
DrawRect( aRect );
|
||||
}
|
||||
|
||||
void SvxCropExample::Resize()
|
||||
{
|
||||
SetFrameSize(aFrameSize);
|
||||
}
|
||||
|
||||
void SvxCropExample::SetFrameSize( const Size& rSz )
|
||||
{
|
||||
aFrameSize = rSz;
|
||||
|
Loading…
x
Reference in New Issue
Block a user