diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 561ac508d576..679759f4022d 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -2559,24 +2559,20 @@ bool SdrPowerPointImport::GetColorFromPalette( sal_uInt16 nNum, Color& rColor ) } if ( pMasterPersist ) { - while( ( pMasterPersist && pMasterPersist->aSlideAtom.nFlags & 2 ) // it is possible that a masterpage - && pMasterPersist->aSlideAtom.nMasterId ) // itself is following a master colorscheme + while( (pMasterPersist->aSlideAtom.nFlags & 2) // it is possible that a masterpage + && pMasterPersist->aSlideAtom.nMasterId ) // itself is following a master colorscheme { auto nOrigMasterId = pMasterPersist->aSlideAtom.nMasterId; sal_uInt16 nNextMaster = m_pMasterPages->FindPage(nOrigMasterId); - if ( nNextMaster == PPTSLIDEPERSIST_ENTRY_NOTFOUND ) + if (nNextMaster == PPTSLIDEPERSIST_ENTRY_NOTFOUND) break; - else - pMasterPersist = &(*pPageList2)[ nNextMaster ]; + pMasterPersist = &(*pPageList2)[ nNextMaster ]; if (pMasterPersist->aSlideAtom.nMasterId == nOrigMasterId) { SAL_WARN("filter.ms", "loop in atom chain"); break; } } - } - if ( pMasterPersist ) - { const_cast<SdrPowerPointImport*>(this)->aPageColors = pMasterPersist->aColorScheme; } } |