Kaydet (Commit) 3afe82bd authored tarafından Eike Rathke's avatar Eike Rathke

handle paste special of single formula cell if IsEmptyDisplayedAsString()

Similar to CopyCellsFromClipHandler.

Change-Id: I7da8a55c3648c6f04c5f3b11459764fd42f51399
üst 12ecd304
...@@ -219,6 +219,11 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum ...@@ -219,6 +219,11 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum
rSrcCell.set(pErrCell); rSrcCell.set(pErrCell);
} }
} }
else if (rSrcCell.mpFormula->IsEmptyDisplayedAsString())
{
// Empty stays empty and doesn't become 0.
rSrcCell.clear();
}
else if (rSrcCell.mpFormula->IsValue()) else if (rSrcCell.mpFormula->IsValue())
{ {
bool bPaste = isDateCell(rSrcCol, rSrcPos.Row()) ? bDateTime : bNumeric; bool bPaste = isDateCell(rSrcCol, rSrcPos.Row()) ? bDateTime : bNumeric;
......
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