summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Symes <allsymes@gmail.com>2011-06-22 19:13:11 +1200
committerTor Lillqvist <tlillqvist@novell.com>2011-06-22 13:59:51 +0300
commit422823a42b1e5a557cfba1cd4f9f7fb1a4c500cd (patch)
tree96efca96863cc0f1c94dc126a90f195bfccfee24
parent0ce72067b2a45605dc0e1635914d34af7e82debf (diff)
Don't update CustomAnimationList when we are already updating it.
When we update the CustomAnimationList, we restore the selection state, and we don't want this to cause more updates (since that makes the scrollbar flash annoyingly). Signed-off-by: Tor Lillqvist <tlillqvist@novell.com>
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 224129ae7..196fc5388 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -865,6 +865,8 @@ void CustomAnimationList::onSelectionChanged( Any aSelection )
void CustomAnimationList::SelectHdl()
{
+ if( mbIgnorePaint )
+ return;
SvTreeListBox::SelectHdl();
mpController->onSelect();
}