Kaydet (Commit) dfddb1d3 authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 285d62c5
...@@ -36,6 +36,7 @@ public: ...@@ -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; }
......
...@@ -786,6 +786,11 @@ void SvxCropExample::Paint( const Rectangle& ) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment