summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 15:16:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-24 16:49:32 +0100
commit9afa992b34fbe9285398c6ec88e94d961da4094e (patch)
tree561cda8edb9ed7f1f340f1711000efc56126f1b2 /starmath
parent51e6a95757906dff8b2819a4141bf3dc7938e95f (diff)
remove unused FontChangeMask::HorAlign
Change-Id: I9e38cf1d749aa78e5b3c32575b76a372ca25c7c8 Reviewed-on: https://gerrit.libreoffice.org/63933 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/node.hxx5
-rw-r--r--starmath/source/node.cxx3
2 files changed, 3 insertions, 5 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 9ee746d9d04c..640435a4101e 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -58,13 +58,12 @@ enum class FontChangeMask {
Bold = 0x0004,
Italic = 0x0008,
Color = 0x0010,
- Phantom = 0x0020,
- HorAlign = 0x0040
+ Phantom = 0x0020
};
namespace o3tl
{
- template<> struct typed_flags<FontChangeMask> : is_typed_flags<FontChangeMask, 0x007f> {};
+ template<> struct typed_flags<FontChangeMask> : is_typed_flags<FontChangeMask, 0x003f> {};
}
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 2eba1f5c58f1..9e1ef9279997 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -204,8 +204,7 @@ void SmNode::SetSize(const Fraction &rSize)
void SmNode::SetRectHorAlign(RectHorAlign eHorAlign, bool bApplyToSubTree )
{
- if (!(Flags() & FontChangeMask::HorAlign))
- meRectHorAlign = eHorAlign;
+ meRectHorAlign = eHorAlign;
if (bApplyToSubTree)
ForEachNonNull(this, [eHorAlign](SmNode *pNode){pNode->SetRectHorAlign(eHorAlign);});