summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-03-18 16:36:54 +0100
committerPetr Mladek <pmladek@suse.cz>2012-03-20 09:39:45 +0100
commit85c6043d0d339d3df6a4037eedce78df38272ea6 (patch)
treefc0e1206ee27ecad68a780998b7a8c698978cd55 /svx
parenta58d877fd576bacd738972a78c8310d4eccb0daa (diff)
Fix redundant assignment of "nAngle" in switch
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/items/algitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx
index ff93abb7d713..5fa6d82bba2e 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;