[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sd/source
Katarina Behrens
Katarina.Behrens at cib.de
Tue May 9 07:50:56 UTC 2017
sd/source/ui/animations/CustomAnimationPane.cxx | 7 +++++--
sd/source/ui/animations/CustomAnimationPane.hxx | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 8501821f3b5ad541c40b5465aab000a6960b97ba
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Wed May 3 16:55:00 2017 +0200
tdf#105703: Make sure we actually have a motion path here
fix regression from my previous commit
Change-Id: Iddba458ffaf7b647c1942b35d80aa37e6ff6ed13
Reviewed-on: https://gerrit.libreoffice.org/37216
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens at cib.de>
(cherry picked from commit 9eae606ebc1ebd20dbc0aeb44e1f760e62afcdbe)
Reviewed-on: https://gerrit.libreoffice.org/37226
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 26bd04829f50..7e2fc961e67e 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -130,6 +130,7 @@ CustomAnimationPane::CustomAnimationPane( Window* pParent, ViewShellBase& rBase,
mrBase( rBase ),
mpCustomAnimationPresets(nullptr),
mnPropertyType( nPropertyTypeNone ),
+ mnMotionPathPos( 3 ),
mnCurvePathPos( LISTBOX_ENTRY_NOTFOUND ),
mnPolygonPathPos( LISTBOX_ENTRY_NOTFOUND ),
mnFreeformPathPos( LISTBOX_ENTRY_NOTFOUND ),
@@ -146,6 +147,7 @@ CustomAnimationPane::CustomAnimationPane( Window* pParent, ViewShellBase& rBase,
mrBase( rBase ),
mpCustomAnimationPresets(nullptr),
mnPropertyType( nPropertyTypeNone ),
+ mnMotionPathPos( 3 ),
mnCurvePathPos( LISTBOX_ENTRY_NOTFOUND ),
mnPolygonPathPos( LISTBOX_ENTRY_NOTFOUND ),
mnFreeformPathPos( LISTBOX_ENTRY_NOTFOUND ),
@@ -1980,7 +1982,8 @@ PathKind CustomAnimationPane::getCreatePathKind() const
{
PathKind eKind = PathKind::NONE;
- if( mpLBAnimation->GetSelectEntryCount() == 1 )
+ if( ( mpLBAnimation->GetSelectEntryCount() == 1 ) &&
+ ( mpLBCategory->GetSelectEntryPos() == mnMotionPathPos ) )
{
const sal_Int32 nPos = mpLBAnimation->GetSelectEntryPos();
if( nPos == mnCurvePathPos )
@@ -2167,7 +2170,7 @@ sal_uInt32 CustomAnimationPane::fillAnimationLB( bool bHasText )
const PresetCategoryList::const_iterator aCategoryEnd( rCategoryList.end() );
mpLBAnimation->Clear();
- if(nPosition == 3)
+ if(nPosition == mnMotionPathPos)
{
OUString sMotionPathLabel( SD_RESSTR( STR_CUSTOMANIMATION_USERPATH ) );
mpLBAnimation->InsertCategory( sMotionPathLabel );
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index e849d70876dd..f6cef94dbafd 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -161,6 +161,7 @@ private:
OUString maStrProperty;
sal_Int32 mnPropertyType;
+ sal_Int32 mnMotionPathPos;
sal_Int32 mnCurvePathPos;
sal_Int32 mnPolygonPathPos;
sal_Int32 mnFreeformPathPos;
More information about the Libreoffice-commits
mailing list