tdf#160213 Don't let insert empty line with numbering, end numbering
We applied the writer's empty bullet line policy to impres. Now We don't let insert empty bullet lines in impress too. Instead we end numbering and start to write normal paragraph at the same line. Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com> Change-Id: I28042d9db59b5622434da0826f8b760f01ad64f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164799 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
f097720636
commit
f3f3ea4cc9
1 changed files with 7 additions and 0 deletions
|
@ -189,6 +189,13 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window const * pFra
|
|||
|
||||
if( !aKeyCode.IsShift() )
|
||||
{
|
||||
// Don't let insert empty paragraph with numbering. Instead end numbering.
|
||||
if (pPara->GetDepth() > -1 &&
|
||||
pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) == 0)
|
||||
{
|
||||
ToggleBullets();
|
||||
return true;
|
||||
}
|
||||
// ImpGetCursor again???
|
||||
if( !bSelection &&
|
||||
aSel.nEndPos == pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) )
|
||||
|
|
Loading…
Reference in a new issue