summaryrefslogtreecommitdiff
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-01-28 12:02:59 +0900
committerMichael Stahl <mstahl@redhat.com>2016-02-04 13:04:09 +0000
commit4f0398587f2854e41a8b544f5e2a00e3680122b6 (patch)
treeaf5516ab9a9a437f5715d33921dd894fafbd9796 /starmath/source/rect.cxx
parent8dbdf538fea36748b5297299943e22b88ba62522 (diff)
starmath: Convert RectHorAlign to scoped enum
Change-Id: Ia5b43083e9675ef2664e5147e80237a7d947e138 Reviewed-on: https://gerrit.libreoffice.org/21859 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index c77af27c1e5b..ce9232bbf477 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -371,17 +371,17 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos,
if (ePos == RectPos::Top || ePos == RectPos::Bottom)
// correct error in current horizontal position
switch (eHor)
- { case RHA_LEFT :
+ { case RectHorAlign::Left:
aPos.X() += rRect.GetItalicLeft() - GetItalicLeft();
break;
- case RHA_CENTER :
+ case RectHorAlign::Center:
aPos.X() += rRect.GetItalicCenterX() - GetItalicCenterX();
break;
- case RHA_RIGHT :
+ case RectHorAlign::Right:
aPos.X() += rRect.GetItalicRight() - GetItalicRight();
break;
- default :
- SAL_WARN("starmath", "unknown case");
+ default:
+ assert(false);
}
return aPos;