enable debug
Change-Id: Id494cf6211e641473748c8e8e535180b01f4d6f5
This commit is contained in:
parent
709d679f8f
commit
84ff084dcb
3 changed files with 11 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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<SfxItemPool*>(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]);
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <svx/svdpool.hxx>
|
||||
#include <svx/sxenditm.hxx>
|
||||
#include <svx/sdsxyitm.hxx>
|
||||
#include <cstdio>
|
||||
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue