[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] libs/kotext: Fix pressing enter following a manual page
From:       Pierre Ducroquet <pinaraf () pinaraf ! info>
Date:       2011-08-31 21:53:33
Message-ID: 20110831215333.B0856A6078 () git ! kde ! org
[Download RAW message or body]

Git commit d78b262cafa22fbbc228a4e38a4c960d8af6e1cc by Pierre Ducroquet.
Committed on 31/08/2011 at 23:53.
Pushed by ducroquet into branch 'master'.

Fix pressing enter following a manual page break

M  +1    -1    libs/kotext/KoTextEditor.cpp

http://commits.kde.org/calligra/d78b262cafa22fbbc228a4e38a4c960d8af6e1cc

diff --git a/libs/kotext/KoTextEditor.cpp b/libs/kotext/KoTextEditor.cpp
index 762fddc..55ce30b 100644
--- a/libs/kotext/KoTextEditor.cpp
+++ b/libs/kotext/KoTextEditor.cpp
@@ -1596,7 +1596,7 @@ void KoTextEditor::newLine()
     d->caret.clearSelection();
     QTextBlockFormat bf = d->caret.blockFormat();
     QVariant direction = bf.property(KoParagraphStyle::TextProgressionDirection);
-    bf.setPageBreakPolicy(QTextFormat::PageBreak_Auto);
+    bf.clearProperty(KoParagraphStyle::BreakBefore);
     bf.clearProperty(KoParagraphStyle::ListStartValue);
     bf.clearProperty(KoParagraphStyle::UnnumberedListItem);
     bf.clearProperty(KoParagraphStyle::IsListHeader);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic