[PATCH] automatic row height is not set if a cell with value and text wrapping allowed
Laurent Godard
lgodard.libre at laposte.net
Mon May 14 07:53:38 PDT 2012
formatting + vertcially centered + text wrapping allowed, the row height should adapt
seems there is a confusion with line break versus text wrapping regarding ATTR_LINEBREAK
Change-Id: I I82b7a71fbc4be6f0ddcd5a0489486b5f80a178a8
---
sc/source/core/data/column2.cxx | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index c28249a..5c71a45 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -154,10 +154,6 @@ long ScColumn::GetNeededSize( SCROW nRow, OutputDevice* pDev,
else
bBreak = ((const SfxBoolItem&)pPattern->GetItem(ATTR_LINEBREAK)).GetValue();
- if (pCell->HasValueData())
- // Cell has a value. Disable line break.
- bBreak = false;
-
// get other attributes from pattern and conditional formatting
SvxCellOrientation eOrient = pPattern->GetCellOrientation( pCondSet );
--
1.7.10
--------------040108080706000705060502--
More information about the LibreOffice
mailing list