summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-29 06:53:18 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-29 06:53:18 (GMT)
commit6973109b20ad614cd6aa63c410d67dbafd06e1b9 (patch)
tree301993c96e861b1d06d120d359150f27df652299
parent469742b86e6e88f70f5a6a1b709b9d0ea73d8bce (diff)
Fix end edit block
-rw-r--r--messagecomposer/src/composer-ng/richtextcomposerng.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/messagecomposer/src/composer-ng/richtextcomposerng.cpp b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
index 3376726..521cf67 100644
--- a/messagecomposer/src/composer-ng/richtextcomposerng.cpp
+++ b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
@@ -398,11 +398,11 @@ void RichTextComposerNg::forceAutoCorrection(bool selectedText)
int cursorPosition = cur.position();
d->autoCorrection->autocorrect(richText, *document(), cursorPosition);
}
- cur.endEditBlock();
- if (cur.position() != initialPosition) {
- cur.setPosition(initialPosition);
- setTextCursor(cur);
- }
+ }
+ cur.endEditBlock();
+ if (cur.position() != initialPosition) {
+ cur.setPosition(initialPosition);
+ setTextCursor(cur);
}
}
}