mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Initialize row preperly on clear()
It is not enough to get rid of the row elements, obviously. In particular, changebar_ may never get reset. Fixes bug #11396.
This commit is contained in:
parent
09f3c9f03d
commit
da2696cc63
@ -262,7 +262,7 @@ public:
|
|||||||
/// remove last element
|
/// remove last element
|
||||||
void pop_back();
|
void pop_back();
|
||||||
/// remove all row elements
|
/// remove all row elements
|
||||||
void clear() { elements_.clear(); }
|
void clear() { *this = Row(); }
|
||||||
/**
|
/**
|
||||||
* if row width is too large, remove all elements after last
|
* if row width is too large, remove all elements after last
|
||||||
* separator and update endpos if necessary. If all that
|
* separator and update endpos if necessary. If all that
|
||||||
|
Loading…
Reference in New Issue
Block a user