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

Michael Meeks <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjoern.michaelsen@canonical
                   |                            |.com

--- Comment #5 from Michael Meeks <[email protected]> ---
Interesting.

(gdb) 
#4  0x00007fffac60102e in SwDoc::HasInvisibleContent (this=0x114f070) at
/data/opt/libreoffice/master/sw/source/core/doc/doc.cxx:1456
1456            SwSectionFormat* pSectFormat = rSectFormats[ n ];
(gdb) l
1451        }
1452    
1453        const SwSectionFormats& rSectFormats = GetSections();
1454        for( SwSectionFormats::size_type n = rSectFormats.size()-1; n; --n
)
1455        {
1456            SwSectionFormat* pSectFormat = rSectFormats[ n ];
1457            // don't add sections in Undo/Redo
1458            if( !pSectFormat->IsInNodesArr())
1459                continue;
1460            SwSection* pSect = pSectFormat->GetSection();

(gdb) p rSectFormats
$1 = (const SwSectionFormats &) @0x10bfb10:
{<SwFormatsModifyBase<SwSectionFormat*>> =
{<SwVectorModifyBase<SwSectionFormat*>> =
{<std::__debug::vector<SwSectionFormat*, std::allocator<SwSectionFormat*> >> =
std::__debug::vector of length 0, capacity 0, _vptr.SwVectorModifyBase =
0x7fffadebd470 <vtable for SwSectionFormats+16>, mPolicy =
SwVectorModifyBase<SwSectionFormat*>::FreeElements}, <SwFormatsBase> =
{_vptr.SwFormatsBase = 0x7fffadebd4a0 <vtable for SwSectionFormats+64>}, <No
data fields>}, <No data fields>}

We're referencing at index -1 ;-)

Bjoern looks strongly like:

commit 0d97d25d56a5a8466d698e0f5831f2072c8e8baf
Author: Bjoern Michaelsen <[email protected]>
Date:   Sat Mar 14 18:34:28 2015 +0100

    use SwIterator for typed iteration

-        for( SwSectionFmts::size_type n = rSectFmts.size(); !bRet && (n > 0);
)
+    for( SwSectionFmts::size_type n = rSectFmts.size()-1; n; --n )

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to