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