https://bugs.documentfoundation.org/show_bug.cgi?id=164056

--- Comment #6 from Dave Gilbert <[email protected]> ---
Skipping that huge backtrace for a second, something a little more
concentrated:

/discs/fast/core/sw/source/core/layout/objectformattertxtfrm.cxx:237
237                 assert(GetPageFrame().GetPhyPageNum() ==
GetPgNumOfCollected(nIdx));

        const SwPageFrame& GetPageFrame() const
        {
            return mrPageFrame;
        }
(gdb) p mrPageFrame
$4 = (const SwPageFrame &) @0x5d79cd0: {<SwFootnoteBossFrame> =
{<SwLayoutFrame> = {<SwFrame> = {<SwFrameAreaDefinition> = {
          _vptr.SwFrameAreaDefinition = 0x7fffb3eb2a50 <vtable for
SwPageFrame+16>, maFrameArea = SwRect = {point = Point = {x = 284, y = 284},
            size = Size = {width = 12472, height = 17405}}, maFramePrintArea =
SwRect = {point = Point = {x = 794, y = 510}, size = Size = {width = 10884,
              height = 15988}}, mnFrameId = 1, mbFrameAreaPositionValid = true,
mbFrameAreaSizeValid = true, mbFramePrintAreaValid = true,
          static snLastFrameId = 114}, <sw::ClientBase<SwModify>> =
{<sw::WriterListener> = {
            _vptr.WriterListener = 0x7fffb3eb2ba0 <vtable for SwPageFrame+352>,
m_pLeft = 0x0, m_pRight = 0x0},
          m_pRegisteredIn = 0x4355b20}, <SfxBroadcaster> =
{_vptr.SfxBroadcaster = 0x7fffb3eb2bf8 <vtable for SwPageFrame+440>, 
          m_RemovedPositions = std::vector of length 0, capacity 0, m_Listeners
= std::vector of length 0, capacity 0}, static spCache = 0x1ad3ae0, 
        mpRoot = 0x5d799c0, mpUpper = 0x5d799c0, mpNext = 0x61e9460, mpPrev =
0x0, m_pDrawObjs = std::unique_ptr<SwSortedObjs> = {get() = 0x0}, 
        mnFrameType = SwFrameType::Page, mbInDtor = false, mbInvalidR2L =
false, mbDerivedR2L = false, mbRightToLeft = false, mbInvalidVert = false, 
        mbDerivedVert = false, mbVertical = false, mbVertLR = false, mbVertLRBT
= false, mbValidLineNum = false, mbFixSize = true, 
        mbCompletePaint = false, mbRetouche = false, mbInfInvalid = false,
mbInfBody = false, mbInfTab = false, mbInfFly = false, mbInfFootnote = false, 
        mbInfSct = false, mbColLocked = false, m_isInDestroy = false,
mnForbidDelete = 0}, m_pLower = 0x5d6e1b0, 
      m_VertPosOrientFramesFor = std::vector of length 0, capacity 0},
m_nMaxFootnoteHeight = 9223372036854775807},  
  m_pSortedObjs = std::unique_ptr<SwSortedObjs> = {get() = 0x5d7cbf0}, m_pDesc
= 0x43557e0, m_nPhyPageNum = 1, m_bInvalidContent = true, 
  m_bInvalidLayout = true, m_bInvalidFlyContent = true, m_bInvalidFlyLayout =
true, m_bInvalidFlyInCnt = true, m_bFootnotePage = false, 
  m_bEmptyPage = false, m_bEndNotePage = false, m_bInvalidSpelling = true,
m_bInvalidSmartTags = true, m_bInvalidAutoCmplWrds = true, 
  m_bInvalidWordCount = true, m_bHasGrid = false, static snShadowPxWidth = 9
'\t'}

(gdb) p mrPageFrame.GetPhyPageNum()
$5 = 1
(gdb) p nIdx
$1 = 0
sal_uInt32 SwObjectFormatter::GetPgNumOfCollected( const sal_uInt32 _nIndex )
{
    return mpPgNumAndTypeOfAnchors ?
mpPgNumAndTypeOfAnchors->GetPageNum(_nIndex) : 0;
}
(gdb) p mpPgNumAndTypeOfAnchors
$2 = std::unique_ptr<SwPageNumAndTypeOfAnchors> = {get() = 0x612ab10}
(gdb) p mpPgNumAndTypeOfAnchors->GetPageNum(0)
$3 = 2


so we have a 1 !=2

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to