https://bugs.freedesktop.org/show_bug.cgi?id=56549
--- Comment #21 from Julien Nabet <serval2...@yahoo.fr> --- Here is a quick gdb debug session: Breakpoint 1, SwAutoFormat::_SetRedlineTxt (this=0x7fff833e0420, nActionId=14) at /home/julien/compile-libreoffice/libo/sw/source/core/edit/autofmt.cxx:290 290 sal_uInt16 nSeqNo = 0; (gdb) n 291 if( STR_AUTOFMTREDL_END > nActionId ) (gdb) list 286 287 void SwAutoFormat::_SetRedlineTxt( sal_uInt16 nActionId ) 288 { 289 String sTxt; 290 sal_uInt16 nSeqNo = 0; 291 if( STR_AUTOFMTREDL_END > nActionId ) 292 { 293 sTxt = ViewShell::GetShellRes()->GetAutoFmtNameLst()[ nActionId ]; 294 switch( nActionId ) 295 { (gdb) p ViewShell::GetShellRes() $1 = (ShellResource *) 0x5081850 (gdb) p ViewShell::GetShellRes()->GetAutoFmtNameLst() $2 = (const std::__debug::vector<String, std::allocator<String> > &) @0x0: <error reading variable> (gdb) ViewShell::GetShellRes()->GetAutoFmtNameLst() returns nothing. So obviously, [] on nothing => crash. Now the thing is, is it normal it returns nothing? If not, why does it return nothing? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs