diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-11 10:58:26 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-11 10:58:26 +0100 |
commit | 5a256f4486e4b9875ea62c9a8f65ad110fda71b9 (patch) | |
tree | 0ec1d2db577a71f5bb2c3a82205cba7d43d083d9 /svtools/source/table/cellvalueconversion.cxx | |
parent | 858b82e990dee4558dbe3fe3c026d806f5acd524 (diff) |
gridsort: removed XGridControl::setTooltip. It had a rather strange semantics, seems to be unused in the current
OOo code base, and would belong to the model, if at all.
Still one thing to do: do not unconditionally display the cell content as tooltip, but make this dependent on
whether or not the cell content fits into the cell.
Diffstat (limited to 'svtools/source/table/cellvalueconversion.cxx')
-rwxr-xr-x | svtools/source/table/cellvalueconversion.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx index 9b36ad095203..286ca505bb30 100755 --- a/svtools/source/table/cellvalueconversion.cxx +++ b/svtools/source/table/cellvalueconversion.cxx @@ -46,12 +46,16 @@ namespace svt //------------------------------------------------------------------------------------------------------------------ ::rtl::OUString CellValueConversion::convertToString( const Any& i_value ) { + ::rtl::OUString sConvertString; + if ( !i_value.hasValue() ) + return sConvertString; + + // TODO: use css.script.XTypeConverter? sal_Int32 nInt = 0; sal_Bool bBool = false; double fDouble = 0; - ::rtl::OUString sConvertString; ::rtl::OUString sStringValue; if ( i_value >>= sConvertString ) |