[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - editeng/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Oct 27 17:08:03 UTC 2018
editeng/source/editeng/impedit2.cxx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
New commits:
commit a9558457643af2c978a86ce1c744886d983a162d
Author: Mark Hung <marklh9 at gmail.com>
AuthorDate: Mon Oct 8 21:49:44 2018 +0800
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Sat Oct 27 19:07:42 2018 +0200
tdf#119065 fix the style of two connected paragraphs.
Invoke ImpConnectParagraphs with bSpecialBackward set to
false by default in DeleteLeftOrRight(). Old design connect
backward when pressing backspace to connect two paragraphs.
The former paragraph of the two ( or the remain one ) adopt
the paragraph style ( bullet on/off status, color, etc. )
from the later paragraph.
It's hard to understand the intention of the original design,
and the design was not activated until LibreOffice6.1,
hence just don't connect backward anymore.
Change-Id: I3697acc01d718d7a769fb8d0bd573084c4fe2969
Reviewed-on: https://gerrit.libreoffice.org/61537
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9 at gmail.com>
(cherry picked from commit 53d900fb334b2ce08ff19de0f765108e8c91a36f)
Reviewed-on: https://gerrit.libreoffice.org/61701
Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 39192121fcf0..cd48e92ad4c9 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -2390,12 +2390,7 @@ EditPaM ImpEditEngine::DeleteLeftOrRight( const EditSelection& rSel, sal_uInt8 n
if ( ( nDelMode == DeleteMode::RestOfContent ) || ( aDelStart.GetNode() == aDelEnd.GetNode() ) )
return ImpDeleteSelection( EditSelection( aDelStart, aDelEnd ) );
- // Decide now if to delete selection (RESTOFCONTENTS)
- bool bSpecialBackward = ( nMode == DEL_LEFT ) && ( nDelMode == DeleteMode::Simple );
- if ( aStatus.IsAnyOutliner() )
- bSpecialBackward = false;
-
- return ImpConnectParagraphs( aDelStart.GetNode(), aDelEnd.GetNode(), bSpecialBackward );
+ return ImpConnectParagraphs(aDelStart.GetNode(), aDelEnd.GetNode());
}
EditPaM ImpEditEngine::ImpDeleteSelection(const EditSelection& rCurSel)
More information about the Libreoffice-commits
mailing list