summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-12-09 17:43:44 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-12-10 12:00:25 +0000
commit484cee0e0c655cf1fc1bff4758e4eb6e4dd0184e (patch)
tree812c9f64aabae648a166fe6e3d28a692c194f95b /sw/source
parentd4d247866eac108162f43dae2c6ddbd9c12382a6 (diff)
writer: Defer update, until post first render to avoid flicker.
Change-Id: Ib16f5b345901adc7036a8a90d0f46aa3499d66ae
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/inc/conttree.hxx1
-rw-r--r--sw/source/uibase/utlui/content.cxx10
2 files changed, 10 insertions, 1 deletions
diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx
index 010b3475b8f0..ca22dc77a4e4 100644
--- a/sw/source/uibase/inc/conttree.hxx
+++ b/sw/source/uibase/inc/conttree.hxx
@@ -137,6 +137,7 @@ protected:
SvTreeListEntry*& rpNewParent,
sal_uLong& rNewChildPos
) override;
+ virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
void EditEntry( SvTreeListEntry* pEntry, EditEntryMode nMode );
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 8536c4c62987..3feb1f98098d 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -2424,10 +2424,18 @@ void SwContentTree::ExecCommand(sal_uInt16 nCmd, bool bModifier)
void SwContentTree::ShowTree()
{
- m_aUpdTimer.Start();
SvTreeListBox::Show();
}
+void SwContentTree::Paint( vcl::RenderContext& rRenderContext,
+ const Rectangle& rRect )
+{
+ // Start the update timer on the first paint; avoids
+ // flicker on the first reveal.
+ m_aUpdTimer.Start();
+ SvTreeListBox::Paint( rRenderContext, rRect );
+}
+
// folded together will not be glidled
void SwContentTree::HideTree()