~aleteoryx/muditaos

9f0c945e673de6a688f75c27d5916f4d1bd547e0 — Przemyslaw Brudny 5 years ago 3cb0a31
[EGD-6388] Fix TextLine addition and deletion with scroll test

Fixed missing line start condition memorizing on empty blocks
removal.
1 files changed, 2 insertions(+), 1 deletions(-)

M module-gui/gui/widgets/TextLine.cpp
M module-gui/gui/widgets/TextLine.cpp => module-gui/gui/widgets/TextLine.cpp +2 -1
@@ 1,4 1,4 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "TextLine.hpp"


@@ 45,6 45,7 @@ namespace gui
            auto text = localCursor.getUTF8Text();

            if (text.length() == 0 && localCursor.checkCurrentBlockNoNewLine() && !localCursor.atEnd()) {
                setLineStartConditions(localCursor.getBlockNumber(), localCursor.getPosition());
                localCursor.goToNextBlock();
                continue;
            }