diff options
author | David Tardon <dtardon@redhat.com> | 2014-05-10 10:13:44 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-05-10 10:20:06 +0200 |
commit | 90af0348216a5a3c2eecd660e012500d2917b279 (patch) | |
tree | 5985760e1dac814ac462b7b1a910bba6fddc90b5 /sd | |
parent | f1fde869b47e5447f261d92ce386434d3d628d52 (diff) |
Related: rhbz#1071604 don't paint anim. effect icon
... unless the slide does have custom animations. This drops dep of Draw
on libanimcore, which is in module impress, so it might not be present.
If it is not present, the Pages panel is not drawn.
Change-Id: I9d7377a4fb3289e230887752bc4a105ca1c9f812
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx b/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx index 0eafa0b21eeb..60c51fa8d3db 100644 --- a/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx +++ b/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx @@ -94,7 +94,8 @@ void PageObjectPainter::PaintPageObject ( PaintPreview(rDevice, rpDescriptor); PaintPageNumber(rDevice, rpDescriptor); PaintTransitionEffect(rDevice, rpDescriptor); - PaintCustomAnimationEffect(rDevice, rpDescriptor); + if (rpDescriptor->GetPage()->hasAnimationNode()) + PaintCustomAnimationEffect(rDevice, rpDescriptor); rDevice.SetAntialiasing(nSavedAntialiasingMode); } } |