diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index b13786f61c00..5476ae054149 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -3918,18 +3918,16 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam) // Size aPaperSize = Size( 1000000, 1000000 ); - if (rParam.hasLineBreak()) - { - // call GetOutputArea with nNeeded=0, to get only the cell width + // call GetOutputArea with nNeeded=0, to get only the cell width - //! handle nArrY == 0 - GetOutputArea( nXForPos, nArrYForPos, rParam.mnPosX, rParam.mnPosY, rParam.mnCellX, rParam.mnCellY, 0, - *rParam.mpPattern, sal::static_int_cast<sal_uInt16>(eOutHorJust), - rParam.mbCellIsValue, true, false, aAreaParam ); + //! handle nArrY == 0 + GetOutputArea( nXForPos, nArrYForPos, rParam.mnPosX, rParam.mnPosY, rParam.mnCellX, rParam.mnCellY, 0, + *rParam.mpPattern, sal::static_int_cast<sal_uInt16>(eOutHorJust), + rParam.mbCellIsValue, true, false, aAreaParam ); + + //! special ScEditUtil handling if formatting for printer + rParam.calcPaperSize(aPaperSize, aAreaParam.maAlignRect, nPPTX, nPPTY); - //! special ScEditUtil handling if formatting for printer - rParam.calcPaperSize(aPaperSize, aAreaParam.maAlignRect, nPPTX, nPPTY); - } if (rParam.mbPixelToLogic) { Size aLogicSize = pRefDevice->PixelToLogic(aPaperSize); |