[Libreoffice-commits] .: svx/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sun Mar 18 08:38:12 PDT 2012
svx/source/items/algitem.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 49d7d4b3255f731ce9a8b5256da25f6a9bf53169
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Mar 18 16:36:54 2012 +0100
Fix redundant assignment of "nAngle" in switch
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx
index ff93abb..5fa6d82 100644
--- a/svx/source/items/algitem.cxx
+++ b/svx/source/items/algitem.cxx
@@ -180,8 +180,8 @@ sal_Int32 SvxOrientationItem::GetRotation( sal_Int32 nStdAngle ) const
sal_Int32 nAngle = nStdAngle;
switch( static_cast< SvxCellOrientation >( GetValue() ) )
{
- case SVX_ORIENTATION_BOTTOMTOP: nAngle = 9000;
- case SVX_ORIENTATION_TOPBOTTOM: nAngle = 27000;
+ case SVX_ORIENTATION_BOTTOMTOP: nAngle = 9000;break;
+ case SVX_ORIENTATION_TOPBOTTOM: nAngle = 27000;break;
default: ; //prevent warning
}
return nAngle;
More information about the Libreoffice-commits
mailing list