svx/source/fmcomp/gridcell.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 1dbd24bd4e26036374ba5ad991fe386d3bdd47f3 Author: Jesus Solis <[email protected]> AuthorDate: Fri Oct 17 22:20:09 2025 -0500 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Jan 6 16:26:05 2026 +0100 tdf#74702 vcl: remove enum OutDevType usage Change-Id: Ie871620d70be5fe0b0391d31fbe31065474cfc1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192604 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index c710699a46ba..2e9b49f359ed 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -447,8 +447,7 @@ void DbGridColumn::Paint(OutputDevice& rDev, const DbGridRow* pRow, const Reference< XNumberFormatter >& xFormatter) { - bool bEnabled = ( rDev.GetOutDevType() != OUTDEV_WINDOW ) - || ( rDev.GetOwnerWindow()->IsEnabled() ); + bool bEnabled = rDev.GetOwnerWindow() && rDev.GetOwnerWindow()->IsEnabled(); FmXDataCell* pDataCell = dynamic_cast<FmXDataCell*>( m_pCell.get() ); if (pDataCell) @@ -3570,7 +3569,7 @@ void FmXTextCell::PaintFieldToCell(OutputDevice& rDev, const Reference< XNumberFormatter >& xFormatter) { DrawTextFlags nStyle = DrawTextFlags::Clip; - if ( ( rDev.GetOutDevType() == OUTDEV_WINDOW ) && !rDev.GetOwnerWindow()->IsEnabled() ) + if ( !rDev.GetOwnerWindow() || !rDev.GetOwnerWindow()->IsEnabled() ) nStyle |= DrawTextFlags::Disable; switch (m_pColumn->GetAlignment())
