summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-08-25 22:49:10 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-25 22:49:10 -0400
commit11f382320afed27ee071312e44e651781be2e359 (patch)
treedb44e9d9e7c5d2d53bc68eb4ea8f9ad6a8f09c53 /sc
parent31a6fa9f934dbedcc7b29da4d6d76d2fbb553232 (diff)
hasLineBreak is always true for stacked orientation.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/output2.cxx18
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);