Kaydet (Commit) 9afa992b authored tarafından Noel Grandin's avatar Noel Grandin

remove unused FontChangeMask::HorAlign

Change-Id: I9e38cf1d749aa78e5b3c32575b76a372ca25c7c8
Reviewed-on: https://gerrit.libreoffice.org/63933
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 51e6a957
......@@ -1236,8 +1236,6 @@ slideshow/source/inc/doctreenode.hxx:52
enum slideshow::internal::DocTreeNode::NodeType Invalid
soltools/cpp/cpp.h:42
int WS
starmath/inc/node.hxx:62
enum FontChangeMask HorAlign
svgio/inc/svgstyleattributes.hxx:62
enum svgio::svgreader::FontSize FontSize_notset
svl/source/numbers/zformat.cxx:358
......
......@@ -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> {};
}
......
......@@ -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);});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment