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:
Jean-Marc Lasgouttes 2019-05-22 11:53:58 +02:00
parent 09f3c9f03d
commit da2696cc63

View File

@ -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