Kaydet (Commit) 57e531ef authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Bit more organized & Error item has string too.

üst 8efa446a
...@@ -248,14 +248,19 @@ ScDPItemData& ScDPItemData::operator= (const ScDPItemData& r) ...@@ -248,14 +248,19 @@ ScDPItemData& ScDPItemData::operator= (const ScDPItemData& r)
sal_uInt8 ScDPItemData::GetCellType() const sal_uInt8 ScDPItemData::GetCellType() const
{ {
if (meType == Error) switch (meType)
return SC_VALTYPE_ERROR; {
else if (meType == Empty) case Error:
return SC_VALTYPE_EMPTY; return SC_VALTYPE_ERROR;
else if ( IsValue()) case Empty:
return SC_VALTYPE_VALUE; return SC_VALTYPE_EMPTY;
else case Value:
return SC_VALTYPE_STRING; return SC_VALTYPE_VALUE;
default:
;
}
return SC_VALTYPE_STRING;
} }
#if DEBUG_DP_ITEM_DATA #if DEBUG_DP_ITEM_DATA
...@@ -342,7 +347,7 @@ ScDPItemData::GroupValueAttr ScDPItemData::GetGroupValue() const ...@@ -342,7 +347,7 @@ ScDPItemData::GroupValueAttr ScDPItemData::GetGroupValue() const
bool ScDPItemData::HasStringData() const bool ScDPItemData::HasStringData() const
{ {
return meType == String; return meType == String || meType == Error;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment