Kaydet (Commit) 8542444f authored tarafından Muthu Subramanian's avatar Muthu Subramanian

Code review fixes.

üst 0d1ff2bf
......@@ -283,7 +283,7 @@ sal_Bool SfxStyleSheetBase::SetParent( const XubString& rName )
if( aName.Len() )
while(pIter)
{
if(pIter->GetName() == aName && aName != rName)
if(pIter->GetName() == aName)
return sal_False;
pIter = rPool.Find(pIter->GetParent(), nFamily);
}
......
......@@ -1445,7 +1445,7 @@ void SdXMLStylesContext::ImpSetGraphicStyles( uno::Reference< container::XNameAc
{
const SvXMLStyleContext* pStyle = GetStyle(a);
if(pStyle && pStyle->GetName().getLength() && (nFamily == pStyle->GetFamily())) try
if(pStyle && pStyle->GetDisplayName().getLength() && (nFamily == pStyle->GetFamily())) try
{
OUString aStyleName(pStyle->GetDisplayName());
if( nPrefLen )
......
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