diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index f3c2ddfc7b2c..2217dcf37c7b 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -1996,8 +1996,7 @@ void AutoRecovery::implts_specifyAppModuleAndFactory(AutoRecovery::TDocumentInfo } void AutoRecovery::implts_collectActiveViewNames( AutoRecovery::TDocumentInfo& i_rInfo ) -{ - ENSURE_OR_THROW2( i_rInfo.Document.is(), "need at document, at the very least", *this ); +{ ENSURE_OR_THROW2( i_rInfo.Document.is(), "need at document, at the very least", *this ); i_rInfo.ViewNames.realloc(0); diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index ea9166c37618..b9fef4d34f8d 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -449,6 +449,9 @@ void SfxItemPool::unregisterNameOrIndex(const SfxPoolItem& rItem) SfxItemPool* SfxItemPool::getTargetPool(sal_uInt16 nWhich) const { + // Imprime el valor de nWhich y el resultado de IsInRange + printf("DEBUG: Checking target pool for nWhich = %d, IsInRange = %d\n", nWhich, IsInRange(nWhich)); + if (IsInRange(nWhich)) return const_cast(this); if (mpSecondary) @@ -721,8 +724,11 @@ void SfxItemPool::ResetUserDefaultItem( sal_uInt16 nWhich ) const SfxPoolItem& SfxItemPool::GetUserOrPoolDefaultItem( sal_uInt16 nWhich ) const { SfxItemPool* pTarget(getTargetPool(nWhich)); - if (nullptr == pTarget) - assert(!"unknown which - don't ask me for defaults"); + // Imprime el valor de nWhich y pTarget para depuraciĆ³n + printf("DEBUG: nWhich = %d, pTarget = %p\n", nWhich, (void*)pTarget); + if (nullptr == pTarget){ + printf("===============DEBUG: nWhich = %d, pTarget = %p\n", nWhich, (void*)pTarget); + assert(!"unknown which - don't ask me for defaults");abort();} const sal_uInt16 nIndex(pTarget->GetIndex_Impl(nWhich)); const ItemInfo* pInfo(pTarget->maItemInfos[nIndex]); diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx index 1c940aee9089..2d81ea237c79 100644 --- a/sw/source/core/attr/swatrset.cxx +++ b/sw/source/core/attr/swatrset.cxx @@ -42,6 +42,7 @@ #include #include #include +#include @@ -529,6 +530,7 @@ bool IsInRange( const WhichRangesContainer& pRange, const sal_uInt16 nId ) { for(const auto& rPair : pRange) { + printf("Checking range: [%u, %u] with nId = %u\n", rPair.first, rPair.second, nId); if( rPair.first <= nId && nId <= rPair.second ) return true; }