diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-13 23:04:20 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-14 15:35:55 -0400 |
commit | bcc703f2b6bdfd1321f2599faa51e387c9ad3174 (patch) | |
tree | d67d83c8bbd2a34ab479950eb4a7260a5c73be9a /sc | |
parent | 63ee16274ba64c803e38a3bfba6e5fc9e9d772b6 (diff) |
MaybeAddExtraColumn() too. This one is trivial.
Change-Id: I0cd33c90bdb3c6b7cf48677140e3c66fa78caaba
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table1.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index caf858f90add..be34e5150848 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -1751,7 +1751,7 @@ void ScTable::MaybeAddExtraColumn(SCCOL& rCol, SCROW nRow, OutputDevice* pDev, d return; bool bFormula = false; //! ueberge - long nPixel = pCell->GetTextWidth(); + long nPixel = aCol[rCol].GetTextWidth(nRow); // Breite bereits im Idle-Handler berechnet? if ( TEXTWIDTH_DIRTY == nPixel ) @@ -1764,7 +1764,8 @@ void ScTable::MaybeAddExtraColumn(SCCOL& rCol, SCROW nRow, OutputDevice* pDev, d Fraction aZoom(1,1); nPixel = aCol[rCol].GetNeededSize( nRow, pDev, nPPTX, nPPTY, aZoom, aZoom, true, aOptions ); - pCell->SetTextWidth( (sal_uInt16)nPixel ); + + aCol[rCol].SetTextWidth(nRow, static_cast<sal_uInt16>(nPixel)); } long nTwips = (long) (nPixel / nPPTX); |