mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
don't copy internal state of spell checker in copy constructor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
08453ceba4
commit
dcf5272d05
@ -462,7 +462,7 @@ Paragraph::Private::Private(Private const & p, Paragraph * owner)
|
|||||||
: owner_(owner), inset_owner_(p.inset_owner_), fontlist_(p.fontlist_),
|
: owner_(owner), inset_owner_(p.inset_owner_), fontlist_(p.fontlist_),
|
||||||
params_(p.params_), changes_(p.changes_), insetlist_(p.insetlist_),
|
params_(p.params_), changes_(p.changes_), insetlist_(p.insetlist_),
|
||||||
begin_of_body_(p.begin_of_body_), text_(p.text_), words_(p.words_),
|
begin_of_body_(p.begin_of_body_), text_(p.text_), words_(p.words_),
|
||||||
layout_(p.layout_), speller_state_(p.speller_state_)
|
layout_(p.layout_)
|
||||||
{
|
{
|
||||||
id_ = ++paragraph_id;
|
id_ = ++paragraph_id;
|
||||||
requestSpellCheck(p.text_.size());
|
requestSpellCheck(p.text_.size());
|
||||||
@ -475,7 +475,7 @@ Paragraph::Private::Private(Private const & p, Paragraph * owner,
|
|||||||
params_(p.params_), changes_(p.changes_),
|
params_(p.params_), changes_(p.changes_),
|
||||||
insetlist_(p.insetlist_, beg, end),
|
insetlist_(p.insetlist_, beg, end),
|
||||||
begin_of_body_(p.begin_of_body_), words_(p.words_),
|
begin_of_body_(p.begin_of_body_), words_(p.words_),
|
||||||
layout_(p.layout_), speller_state_(p.speller_state_)
|
layout_(p.layout_)
|
||||||
{
|
{
|
||||||
id_ = ++paragraph_id;
|
id_ = ++paragraph_id;
|
||||||
if (beg >= pos_type(p.text_.size()))
|
if (beg >= pos_type(p.text_.size()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user