From da2696cc63045749c9273d4a57cb2058e264549c Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 22 May 2019 11:53:58 +0200 Subject: [PATCH] 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. --- src/Row.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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