summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2011-01-05 13:23:59 +0100
committerVladimir Glazunov <vg@openoffice.org>2011-01-05 13:23:59 +0100
commitfaf2e7ab967a47f55804af62adad5d9a3f77dbcc (patch)
treecbf17dbc153f2cf17409665f2b766ddf8741722a /sd/source/ui/animations
parenteb483309e8c3792c8a494ed9f1ec4f08a0f9590b (diff)
parent43aa5e0362693dfddbd9e8a44ca028f49428fd96 (diff)
CWS-TOOLING: integrate CWS impressdefaults1
Diffstat (limited to 'sd/source/ui/animations')
-rwxr-xr-x[-rw-r--r--]sd/source/ui/animations/CustomAnimationPane.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 8b96e08b4a8c..9cdbc2f0cfba 100644..100755
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1953,6 +1953,16 @@ void CustomAnimationPane::onChange( bool bCreate )
{
CustomAnimationEffectPtr pCreated = mpMainSequence->append( pDescriptor, (*aIter), fDuration );
+ // if only one shape with text and no fill or outline is selected, animate only by first level paragraphs
+ if( bHasText && (aTargets.size() == 1) )
+ {
+ Reference< XShape > xShape( (*aIter), UNO_QUERY );
+ if( xShape.is() && !hasVisibleShape( xShape ) )
+ {
+ mpMainSequence->createTextGroup( pCreated, 1, -1.0, sal_False, sal_False );
+ }
+ }
+
if( bFirst )
bFirst = false;
else