mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Add a copy constructor of InsetCollapsable to fix the follow bug:
mouse_hover_ is copied with copied collapsable insets. Should be false for newly copied insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
41bd1e5fc2
commit
af75e269c7
@ -63,6 +63,23 @@ InsetCollapsable::InsetCollapsable
|
||||
}
|
||||
|
||||
|
||||
InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs):
|
||||
InsetText(rhs),
|
||||
labelfont_(rhs.labelfont_),
|
||||
button_dim(rhs.button_dim),
|
||||
topx(rhs.topx),
|
||||
topbaseline(rhs.topbaseline),
|
||||
label(rhs.label),
|
||||
status_(rhs.status_),
|
||||
openinlined_(rhs.openinlined_),
|
||||
autoOpen_(rhs.autoOpen_),
|
||||
textdim_(rhs.textdim_),
|
||||
// the sole purpose of this copy constructor
|
||||
mouse_hover_(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void InsetCollapsable::write(Buffer const & buf, ostream & os) const
|
||||
{
|
||||
os << "status ";
|
||||
|
@ -42,6 +42,8 @@ public:
|
||||
///
|
||||
InsetCollapsable(BufferParams const &, CollapseStatus status = Open);
|
||||
///
|
||||
InsetCollapsable(InsetCollapsable const & rhs);
|
||||
///
|
||||
void read(Buffer const &, LyXLex &);
|
||||
///
|
||||
void write(Buffer const &, std::ostream &) const;
|
||||
|
Loading…
Reference in New Issue
Block a user