Kaydet (Commit) eb9054fb authored tarafından Caolán McNamara's avatar Caolán McNamara

fix crash double clicking rotated text in calc

üst a47cb498
......@@ -112,13 +112,11 @@ int SvxClipboardFmtItem::operator==( const SfxPoolItem& rComp ) const
return 0;
int nRet = 1;
const String* pStr1, *pStr2;
for( sal_uInt16 n = 0, nEnd = rCmp.pImpl->aFmtNms.size(); n < nEnd; ++n )
{
if( pImpl->aFmtIds[ n ] != rCmp.pImpl->aFmtIds[ n ] ||
( (0 == ( pStr1 = &(pImpl->aFmtNms[n]) )) ^
(0 == ( pStr2 = &(rCmp.pImpl->aFmtNms[n]) ) )) ||
( pStr1 && *pStr1 != *pStr2 ))
( pImpl->aFmtNms.is_null(n) ^ rCmp.pImpl->aFmtNms.is_null(n) ) ||
( !pImpl->aFmtNms.is_null(n) && pImpl->aFmtNms[n] != rCmp.pImpl->aFmtNms[n] ) )
{
nRet = 0;
break;
......
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