[Libreoffice-commits] core.git: svx/source
Jan Holesovsky
kendy at collabora.com
Tue Jun 24 00:21:05 PDT 2014
svx/source/svdraw/svdoashp.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 164ec65b1afbd781486122e5c1137303067564cc
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Jun 20 21:48:02 2014 +0200
Let's make this more consistent / readable.
Change-Id: I6a14c658961ce6de271c34e478d797de2bdbbc78
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index a640b22..8205121 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -621,9 +621,9 @@ std::vector< SdrCustomShapeInteraction > SdrObjCustomShape::GetInteractionHandle
{
case mso_sptAccentBorderCallout90 : // 2 ortho
{
- if ( !i )
+ if (i == 0)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_FIXED | CUSTOMSHAPE_HANDLE_CREATE_FIXED;
- else if ( i == 1)
+ else if (i == 1)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_X | CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_Y | CUSTOMSHAPE_HANDLE_MOVE_SHAPE | CUSTOMSHAPE_HANDLE_ORTHO4;
}
break;
@@ -633,24 +633,24 @@ std::vector< SdrCustomShapeInteraction > SdrObjCustomShape::GetInteractionHandle
case mso_sptCloudCallout :
case mso_sptWedgeEllipseCallout :
{
- if ( !i )
+ if (i == 0)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_FIXED;
}
break;
case mso_sptBorderCallout1 : // 2 diag
{
- if ( !i )
+ if (i == 0)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_FIXED | CUSTOMSHAPE_HANDLE_CREATE_FIXED;
- else if ( i == 1 )
+ else if (i == 1)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_X | CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_Y | CUSTOMSHAPE_HANDLE_MOVE_SHAPE;
}
break;
case mso_sptBorderCallout2 : // 3
{
- if ( !i )
+ if (i == 0)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_FIXED | CUSTOMSHAPE_HANDLE_CREATE_FIXED;
- else if ( i == 2 )
+ else if (i == 2)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_X | CUSTOMSHAPE_HANDLE_RESIZE_ABSOLUTE_Y | CUSTOMSHAPE_HANDLE_MOVE_SHAPE;
}
break;
@@ -668,7 +668,7 @@ std::vector< SdrCustomShapeInteraction > SdrObjCustomShape::GetInteractionHandle
case mso_sptAccentBorderCallout2 :
case mso_sptAccentBorderCallout3 :
{
- if ( !i )
+ if (i == 0)
nMode |= CUSTOMSHAPE_HANDLE_RESIZE_FIXED | CUSTOMSHAPE_HANDLE_CREATE_FIXED;
}
break;
More information about the Libreoffice-commits
mailing list