reduce indentation
Change-Id: I9645e083ea61347fa323f84a271937e98d4f8eb3
This commit is contained in:
@@ -1466,8 +1466,9 @@ void ImpEditView::CutCopy( css::uno::Reference< css::datatransfer::clipboard::XC
|
||||
|
||||
void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bUseSpecial )
|
||||
{
|
||||
if ( rxClipboard.is() )
|
||||
{
|
||||
if ( !rxClipboard.is() )
|
||||
return;
|
||||
|
||||
uno::Reference< datatransfer::XTransferable > xDataObj;
|
||||
|
||||
try
|
||||
@@ -1479,8 +1480,9 @@ void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XCli
|
||||
{
|
||||
}
|
||||
|
||||
if ( xDataObj.is() && EditEngine::HasValidData( xDataObj ) )
|
||||
{
|
||||
if ( !xDataObj.is() || !EditEngine::HasValidData( xDataObj ) )
|
||||
return;
|
||||
|
||||
pEditEngine->pImpEditEngine->UndoActionStart( EDITUNDO_PASTE );
|
||||
|
||||
EditSelection aSel( GetEditSelection() );
|
||||
@@ -1531,8 +1533,6 @@ void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XCli
|
||||
pEditEngine->pImpEditEngine->FormatAndUpdate( GetEditViewPtr() );
|
||||
ShowCursor( DoAutoScroll(), true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool ImpEditView::IsInSelection( const EditPaM& rPaM )
|
||||
|
@@ -3458,8 +3458,9 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
|
||||
{
|
||||
EditSelection aNewSelection( rPaM );
|
||||
|
||||
if ( rxDataObj.is() )
|
||||
{
|
||||
if ( !rxDataObj.is() )
|
||||
return aNewSelection;
|
||||
|
||||
datatransfer::DataFlavor aFlavor;
|
||||
bool bDone = false;
|
||||
|
||||
@@ -3531,7 +3532,6 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return aNewSelection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user