summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-03-02 07:59:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-03-02 08:09:05 +0100
commit413898573805c5f96ae7cc561fdc2125575084a4 (patch)
tree68fbcd1cf7513075ac1ccf6e22c366231fb2c842 /sw/source
parent479fa3a53bf21302e414e892574ea129f8f2373d (diff)
Revert "Stop Navigator content view flashing"
This reverts commit 201a7652092c6a7796a59e6ddee144e4f0c9ece9. Was this submitted in the wrong order? There is no m_bIsInPromoteDemote across the code base. Change-Id: I85cfbb797fccfd0c03c1ec19a792da8e10c7acde Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89806 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/utlui/content.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 47bb9e560a7a..dcfa88e668d7 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1773,8 +1773,8 @@ void SwContentTree::Display( bool bActive )
nEntryRelPos = GetModel()->GetAbsPos(pOldSelEntry) - GetModel()->GetAbsPos(pParentEntry);
}
}
+ Clear();
SetUpdateMode( false );
- SvTreeListBox::Clear();
if (!bActive)
m_eState = State::HIDDEN;
else if (State::HIDDEN == m_eState)
@@ -1912,6 +1912,7 @@ void SwContentTree::Display( bool bActive )
SetCurEntry(pParent);
}
}
+ SetUpdateMode( true );
ScrollBar* pVScroll = GetVScroll();
if(GetEntryCount() == nOldEntryCount &&
nOldScrollPos && pVScroll && pVScroll->IsVisible()
@@ -1920,8 +1921,6 @@ void SwContentTree::Display( bool bActive )
sal_Int32 nDelta = pVScroll->GetThumbPos() - nOldScrollPos;
ScrollOutputArea( static_cast<short>(nDelta) );
}
- if (!m_bIsInPromoteDemote)
- SetUpdateMode( true );
}
void SwContentTree::Clear()
@@ -2721,8 +2720,6 @@ void SwContentTree::ExecCommand(const OUString& rCmd, bool bOutlineWithChildren)
}
SvTreeListBox::Invalidate();
}
- // SetUpdateMode is set false in the Display function
- SetUpdateMode(true);
}
}
@@ -2734,10 +2731,6 @@ void SwContentTree::ShowTree()
void SwContentTree::Paint( vcl::RenderContext& rRenderContext,
const tools::Rectangle& rRect )
{
- // prevent focus rect from flashing when tree is cleared
- // SvTreeListBox::Paint shows focus rectangle when tree is empty
- if (!GetEntryCount())
- return;
// Start the update timer on the first paint; avoids
// flicker on the first reveal.
m_aUpdTimer.Start();