summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-08 12:40:41 +0200
committerNoel Grandin <noel@peralex.com>2014-10-08 12:42:24 +0200
commit62aa0f83fa64c560e56f0af8629d81f327d39b5e (patch)
treefee67bfce761ee3cd3ee10f2527dcf6bd94a2254 /sd
parente1c946c80fa3d81fcac4428ad8c03a550273ab41 (diff)
fix build after PathKind enum commit
after my hasty commit bc00203 "convert PathKind enum in SD to enum class" Change-Id: I97263e907bf7363121dc1b437eaf564efdb66ad2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.cxx8
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
index 4be244827f96..6a68229968fc 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
@@ -376,22 +376,22 @@ CustomAnimationPresetPtr CustomAnimationCreateTabPage::getSelectedPreset() const
PathKind CustomAnimationCreateTabPage::getCreatePathKind() const
{
- PathKind eKind = NONE;
+ PathKind eKind = PathKind::NONE;
if( mpLBEffects->GetSelectEntryCount() == 1 )
{
const sal_Int32 nPos = mpLBEffects->GetSelectEntryPos();
if( nPos == mnCurvePathPos )
{
- eKind = CURVE;
+ eKind = PathKind::CURVE;
}
else if( nPos == mnPolygonPathPos )
{
- eKind = POLYGON;
+ eKind = PathKind::POLYGON;
}
else if( nPos == mnFreeformPathPos )
{
- eKind = FREEFORM;
+ eKind = PathKind::FREEFORM;
}
}
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index e457476b51d6..0c29199b3302 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1793,7 +1793,7 @@ void CustomAnimationPane::onChange( bool bCreate )
else
{
PathKind eKind = pDlg->getCreatePathKind();
- if( eKind != NONE )
+ if( eKind != PathKind::NONE )
createPath( eKind, aTargets, fDuration );
}
mrBase.GetDocShell()->SetModified();
@@ -1813,9 +1813,9 @@ void CustomAnimationPane::createPath( PathKind eKind, std::vector< Any >& rTarge
switch( eKind )
{
- case CURVE: nSID = SID_DRAW_BEZIER_NOFILL; break;
- case POLYGON: nSID = SID_DRAW_POLYGON_NOFILL; break;
- case FREEFORM: nSID = SID_DRAW_FREELINE_NOFILL; break;
+ case PathKind::CURVE: nSID = SID_DRAW_BEZIER_NOFILL; break;
+ case PathKind::POLYGON: nSID = SID_DRAW_POLYGON_NOFILL; break;
+ case PathKind::FREEFORM: nSID = SID_DRAW_FREELINE_NOFILL; break;
default: break;
}