bool improvements

Change-Id: Ia212b8f80da70de7796f0d8ba817c8d3da693080
This commit is contained in:
Stephan Bergmann
2014-01-21 21:19:12 +01:00
parent 6122207e40
commit 3257e9a47a
3 changed files with 5 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ void ImpEditView::DrawSelection( EditSelection aTmpSel, Region* pRegion, OutputD
if ( !pRegion ) if ( !pRegion )
{ {
if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False ) if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
return; return;
if ( pEditEngine->pImpEditEngine->IsInUndo() ) if ( pEditEngine->pImpEditEngine->IsInUndo() )
return; return;
@@ -642,7 +642,7 @@ void ImpEditView::ShowCursor( sal_Bool bGotoCursor, sal_Bool bForceVisCursor, sa
// is initialized in Paint, because no SetPool(); // is initialized in Paint, because no SetPool();
if ( pEditEngine->pImpEditEngine->IsFormatting() ) if ( pEditEngine->pImpEditEngine->IsFormatting() )
return; return;
if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False ) if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
return; return;
if ( pEditEngine->pImpEditEngine->IsInUndo() ) if ( pEditEngine->pImpEditEngine->IsInUndo() )
return; return;

View File

@@ -3953,7 +3953,7 @@ EditSelection ImpEditEngine::MoveParagraphs( Range aOldPositions, sal_Int32 nNew
// Where the paragraph was inserted it has to be properly redrawn: // Where the paragraph was inserted it has to be properly redrawn:
// Where the paragraph was removed it has to be properly redrawn: // Where the paragraph was removed it has to be properly redrawn:
// ( and correspondingly in between as well...) // ( and correspondingly in between as well...)
if ( pCurView && ( GetUpdateMode() == sal_True ) ) if ( pCurView && GetUpdateMode() )
{ {
// in this case one can redraw directly without invalidating the // in this case one can redraw directly without invalidating the
// Portions // Portions

View File

@@ -295,7 +295,7 @@ Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_uInt16 nIn
// don't rotate for vertical text. // don't rotate for vertical text.
Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() ); Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() );
::std::swap( aSize.Width(), aSize.Height() ); ::std::swap( aSize.Width(), aSize.Height() );
bool bIsVertical( rEditEngine.IsVertical() == sal_True ); bool bIsVertical( rEditEngine.IsVertical() );
// #108900# Handle virtual position one-past-the end of the string // #108900# Handle virtual position one-past-the end of the string
if( nIndex >= rEditEngine.GetTextLen(nPara) ) if( nIndex >= rEditEngine.GetTextLen(nPara) )
@@ -380,7 +380,7 @@ sal_Bool SvxEditEngineForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32&
::std::swap( aSize.Width(), aSize.Height() ); ::std::swap( aSize.Width(), aSize.Height() );
Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos, Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos,
aSize, aSize,
rEditEngine.IsVertical() == sal_True )); rEditEngine.IsVertical() ));
EPosition aDocPos = rEditEngine.FindDocPosition( aEEPos ); EPosition aDocPos = rEditEngine.FindDocPosition( aEEPos );