bool improvements
Change-Id: Ia212b8f80da70de7796f0d8ba817c8d3da693080
This commit is contained in:
@@ -161,7 +161,7 @@ void ImpEditView::DrawSelection( EditSelection aTmpSel, Region* pRegion, OutputD
|
||||
|
||||
if ( !pRegion )
|
||||
{
|
||||
if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False )
|
||||
if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
|
||||
return;
|
||||
if ( pEditEngine->pImpEditEngine->IsInUndo() )
|
||||
return;
|
||||
@@ -642,7 +642,7 @@ void ImpEditView::ShowCursor( sal_Bool bGotoCursor, sal_Bool bForceVisCursor, sa
|
||||
// is initialized in Paint, because no SetPool();
|
||||
if ( pEditEngine->pImpEditEngine->IsFormatting() )
|
||||
return;
|
||||
if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False )
|
||||
if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
|
||||
return;
|
||||
if ( pEditEngine->pImpEditEngine->IsInUndo() )
|
||||
return;
|
||||
|
@@ -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 removed it has to be properly redrawn:
|
||||
// ( and correspondingly in between as well...)
|
||||
if ( pCurView && ( GetUpdateMode() == sal_True ) )
|
||||
if ( pCurView && GetUpdateMode() )
|
||||
{
|
||||
// in this case one can redraw directly without invalidating the
|
||||
// Portions
|
||||
|
@@ -295,7 +295,7 @@ Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_uInt16 nIn
|
||||
// don't rotate for vertical text.
|
||||
Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() );
|
||||
::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
|
||||
if( nIndex >= rEditEngine.GetTextLen(nPara) )
|
||||
@@ -380,7 +380,7 @@ sal_Bool SvxEditEngineForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32&
|
||||
::std::swap( aSize.Width(), aSize.Height() );
|
||||
Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos,
|
||||
aSize,
|
||||
rEditEngine.IsVertical() == sal_True ));
|
||||
rEditEngine.IsVertical() ));
|
||||
|
||||
EPosition aDocPos = rEditEngine.FindDocPosition( aEEPos );
|
||||
|
||||
|
Reference in New Issue
Block a user