svx/source/svdraw/svdoashp.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 164ec65b1afbd781486122e5c1137303067564cc Author: Jan Holesovsky <ke...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits