From: Jean-Marc Lasgouttes Date: Wed, 22 May 2019 09:53:58 +0000 (+0200) Subject: Initialize row preperly on clear() X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2005 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=da2696cc;p=features.git 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. --- diff --git a/src/Row.h b/src/Row.h index 01c62cf266..e4a8e689b6 100644 --- a/src/Row.h +++ b/src/Row.h @@ -262,7 +262,7 @@ public: /// remove last element void pop_back(); /// remove all row elements - void clear() { elements_.clear(); } + void clear() { *this = Row(); } /** * if row width is too large, remove all elements after last * separator and update endpos if necessary. If all that