summaryrefslogtreecommitdiffstats
path: root/svx/source/fmcomp/gridcell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/fmcomp/gridcell.cxx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 0700e03e435c..fcbb633fb003 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -946,7 +946,6 @@ void DbCellControl::AlignControl(sal_Int16 nAlignment)
lcl_implAlign( m_pPainter, nAlignmentBit );
}
-
void DbCellControl::PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRect )
{
if ( m_pPainter->GetParent() == &_rDev )
@@ -970,10 +969,12 @@ void DbCellControl::PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRe
m_pPainter->SetParentUpdateMode( true );
}
else
- m_pPainter->Draw( &_rDev, _rRect.TopLeft(), _rRect.GetSize(), DrawFlags::NONE );
+ {
+ m_pPainter->SetSizePixel( _rRect.GetSize() );
+ m_pPainter->Draw( &_rDev, _rRect.TopLeft(), DrawFlags::NONE );
+ }
}
-
void DbCellControl::PaintFieldToCell( OutputDevice& _rDev, const tools::Rectangle& _rRect, const Reference< XColumn >& _rxField, const Reference< XNumberFormatter >& _rxFormatter )
{
m_pPainter->SetText( GetFormatText( _rxField, _rxFormatter ) );