[LyX/master] Amend 18f7dce3d98 - avoid uninialized local variable atlastpos
Stephan Witt
switt at lyx.org
Tue Dec 29 10:41:30 UTC 2020
commit e29896d93da4bf4cd452fdba7e1a0fca3432616b
Author: Stephan Witt <switt at lyx.org>
Date: Tue Dec 29 11:40:53 2020 +0100
Amend 18f7dce3d98 - avoid uninialized local variable atlastpos
---
src/Text.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 8435b73..19b3af5 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -1950,7 +1950,7 @@ bool Text::splitInset(Cursor & cur)
cur.setMark(false);
cur.selHandle(false);
cur.resetAnchor();
- bool atlastpos;
+ bool atlastpos = false;
if (cur.pos() == 0 && cur.pit() > 0) {
// if we are at par start, remove this par
cur.text()->backspace(cur);
More information about the lyx-cvs
mailing list