[LyX/master] Adjust bookmark position when inserting/deleting from paragraph
Jürgen Spitzmüller
spitz at lyx.org
Fri Mar 12 15:41:39 UTC 2021
Am Donnerstag, dem 11.03.2021 um 15:56 +0100 schrieb Jean-Marc
Lasgouttes:
> commit 86bfa10abb57a0af7bbddc3af2c7cdb891c77203
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date: Thu Mar 11 15:57:06 2021 +0100
>
> Adjust bookmark position when inserting/deleting from paragraph
>
> Without this, bookmarks positions drift when editing.
I get the following crash which seems related to this:
* create a 2x2 table
* enter something into the cells of the first row
* select first row, copy
* boom
(gdb) bt
#0 lyx::Inset::buffer() (this=0x0) at insets/Inset.cpp:201
#1 0x0000000000cac1bf in lyx::Inset::buffer() const (this=<optimized
out>) at insets/Inset.cpp:217
#2 0x0000000000a1ec45 in lyx::Paragraph::eraseChar(long, bool)
(this=this at entry=0x661f730, pos=pos at entry=0,
trackChanges=trackChanges at entry=false) at Paragraph.cpp:925
#3 0x0000000000a71c84 in lyx::moveItem(lyx::Paragraph&, lyx::pos_type,
lyx::Paragraph&, lyx::pos_type, lyx::BufferParams const&)
(fromPar=..., fromPos=fromPos at entry=0, toPar=...,
toPos=toPos at entry=1, params=...) at Text.cpp:98
#4 0x0000000000a76e74 in lyx::mergeParagraph(lyx::BufferParams const&,
lyx::ParagraphList&, long)
(bparams=..., pars=..., par_offset=par_offset at entry=0) at
Text.cpp:155
#5 0x00000000008c7f77 in lyx::cap::copySelection(lyx::Cursor const&,
std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > const&) (cur=..., plaintext=...) at
CutAndPaste.cpp:1133
#6 0x00000000008c8458 in lyx::cap::copySelection(lyx::Cursor const&)
(cur=...) at CutAndPaste.cpp:1017
#7 0x0000000000b2f91b in lyx::BufferView::dispatch(lyx::FuncRequest
const&, lyx::DispatchResult&)
(this=this at entry=0x499b510, cmd=..., dr=...) at BufferView.cpp:2267
#8 0x0000000000ea7f90 in
lyx::frontend::GuiView::dispatchToBufferView(lyx::FuncRequest const&,
lyx::DispatchResult&)
(this=this at entry=0x22b6850, cmd=..., dr=...) at GuiView.cpp:4097
#9 0x0000000000ebe15f in
lyx::frontend::GuiView::dispatch(lyx::FuncRequest const&,
lyx::DispatchResult&)
(this=0x22b6850, cmd=..., dr=...) at GuiView.cpp:4834
#10 0x0000000000e85c7b in
lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&,
lyx::DispatchResult&)
(this=0x16ccf70, cmd=..., dr=...) at GuiApplication.cpp:2235
#11 0x0000000000e76877 in
lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&)
(this=0x16ccf70, cmd=...)
at GuiApplication.cpp:1525
#12 0x00000000009860b9 in lyx::dispatch(lyx::FuncRequest const&)
(action=...) at LyX.cpp:1477
#13 0x0000000000e7120e in
lyx::frontend::GuiApplication::processFuncRequest(lyx::FuncRequest
const&)
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210312/7f4708bb/attachment-0001.asc>
More information about the lyx-devel
mailing list