summaryrefslogtreecommitdiff
path: root/sd
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
commit74b31b915587395e35fd72273b80079fc909667f (patch)
treea1c1a939d79cd05c109427936a8120cf2f5e86e9 /sd
parente6b064a296e5774f124226575ac3aebb68e31133 (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>
Diffstat (limited to 'sd')
-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 99b68d6711d9..f6373971bcd2 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();
}