summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table2.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-06-21 13:47:18 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-06-24 16:51:39 -0400
commit92a78a052efcb3122932894fb446c62733daad42 (patch)
treea90a038f8364eccb6712c316c7220375904285ce /sc/source/core/data/table2.cxx
parent5f188d659e8601e577f3a837c9dd3459761371ac (diff)
Don't allow outside code to set text attributes.
Also, use position() to update the value, to avoid performing position lookups twice (once for getting the current value, and once for setting the updated one). Change-Id: Iaa1575a4938b996266c01c8b3170e6a65b871961
Diffstat (limited to 'sc/source/core/data/table2.cxx')
-rw-r--r--sc/source/core/data/table2.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 2192be62f646..3d7b746894e8 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -64,11 +64,6 @@ sal_uInt16 ScTable::GetTextWidth(SCCOL nCol, SCROW nRow) const
return aCol[nCol].GetTextWidth(nRow);
}
-void ScTable::SetTextWidth(SCCOL nCol, SCROW nRow, sal_uInt16 nWidth)
-{
- aCol[nCol].SetTextWidth(nRow, nWidth);
-}
-
bool ScTable::SetOutlineTable( const ScOutlineTable* pNewOutline )
{
sal_uInt16 nOldSizeX = 0;