commit da2696cc63045749c9273d4a57cb2058e264549c
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed May 22 11:53:58 2019 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Row.h b/src/Row.h
index 01c62cf..e4a8e68 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

Reply via email to