summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-17 17:10:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-17 17:11:16 +0000
commitdfddb1d3029e1f129e94b5a2e802f32dd03fe188 (patch)
tree9cec3e8d6f7393fb73ba151ba02eb4343888a48a /cui
parent285d62c554956d44a66128f57952de492037ffde (diff)
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
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/grfpage.hxx1
-rw-r--r--cui/source/tabpages/grfpage.cxx5
2 files changed, 6 insertions, 0 deletions
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;