diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2025-01-24 21:14:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2025-01-25 11:43:43 +0100 |
commit | 5247f456e536b7c7687f6c5b97b12c5d45b2f962 (patch) | |
tree | ada91e5fa965d36bdb4780e9aece14c47ac32ab0 /sw/source/uibase/frmdlg | |
parent | 287941a6cdff79bfacf508e29977efdf00e479c6 (diff) |
convert SwTextGrid to scoped enum
Change-Id: I0c317a0bd1e91ed9399e5436bd2b0d7d26173ffc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180736
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/frmdlg')
-rw-r--r-- | sw/source/uibase/frmdlg/colex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx index d8843596d87b..e0aaed8904f1 100644 --- a/sw/source/uibase/frmdlg/colex.cxx +++ b/sw/source/uibase/frmdlg/colex.cxx @@ -495,7 +495,7 @@ void SwPageGridExample::DrawPage(vcl::RenderContext& rRenderContext, const Point { SwPageExample::DrawPage(rRenderContext, rOrg, bSecond, bEnabled); - if (!m_pGridItem || !m_pGridItem->GetGridType()) + if (!m_pGridItem || m_pGridItem->GetGridType() == SwTextGrid::NONE) return; //paint the grid now @@ -563,7 +563,7 @@ void SwPageGridExample::DrawPage(vcl::RenderContext& rRenderContext, const Point m_bVertical ? aCharRect.Move(nRubyHeight, 0) : aCharRect.Move(0, nRubyHeight); //vertical lines - bool bBothLines = m_pGridItem->GetGridType() == GRID_LINES_CHARS; + bool bBothLines = m_pGridItem->GetGridType() == SwTextGrid::LinesAndChars; rRenderContext.SetFillColor(COL_TRANSPARENT); sal_Int32 nXMove = m_bVertical ? nLineHeight : 0; sal_Int32 nYMove = m_bVertical ? 0 : nLineHeight; |