summaryrefslogtreecommitdiff
path: root/sc/source/filter/html
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-08 14:50:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-08 14:51:06 +0100
commit4e470b40250d9709f5b70224ba0774aab55de7b4 (patch)
treedc5df19c5d3e956a224eaf544eeef0bffe2be6eb /sc/source/filter/html
parentea61d7f9980db1b91b17b86e7cef126cd3831e1e (diff)
WaE: nWidthPixel is unused, lets drop it
Diffstat (limited to 'sc/source/filter/html')
-rw-r--r--sc/source/filter/html/htmlexp.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 6b104c99de34..b7f5914eaf9c 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -909,7 +909,6 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
}
const sal_Char* pChar;
- sal_uInt16 nWidthPixel;
sal_uInt16 nHeightPixel;
const ScMergeAttr& rMergeAttr = (const ScMergeAttr&) pAttr->GetItem( ATTR_MERGE, pCondItemSet );
@@ -929,10 +928,7 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
nC = nC + nCol;
for ( jC=nCol, v=0; jC<nC; jC++ )
v += pDoc->GetColWidth( jC, nTab );
- nWidthPixel = ToPixel( static_cast< sal_uInt16 >( v ) );
}
- else
- nWidthPixel = ToPixel( pDoc->GetColWidth( nCol, nTab ) );
if ( pGraphEntry )
nR = Max( SCROW(pGraphEntry->aRange.aEnd.Row() - nRow + 1),
@@ -950,15 +946,8 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
nHeightPixel = ToPixel( pDoc->GetRowHeight( nRow, nTab ) );
}
else
- {
- nWidthPixel = ToPixel( pDoc->GetColWidth( nCol, nTab ) );
nHeightPixel = ToPixel( pDoc->GetRowHeight( nRow, nTab ) );
- }
-#if 0 // No point - this is already defined in ColGroup
- if ( bTableDataWidth )
- ((((aStrTD += ' ') += OOO_STRING_SVTOOLS_HTML_O_width) += "=\"") += ByteString::CreateFromInt32( nWidthPixel )) += '"';
-#endif
if ( bTableDataHeight )
((((aStrTD += ' ') += OOO_STRING_SVTOOLS_HTML_O_height) += "=\"") += ByteString::CreateFromInt32( nHeightPixel )) += '"';