diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-11-21 16:49:07 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-23 08:10:57 +0000 |
commit | 3168dbbbe356164369f6b7edfeeb6ad217c56d55 (patch) | |
tree | 5458072778677d9af440ac2195a8a8b573bab88f /starmath/source | |
parent | 29d2b9fc74fab4216bbf64284833eb1018f33d92 (diff) |
starmath: Prefix members of SmCaretPos2LineVisitor
Change-Id: I277a66d32af51af7e28fd424dedd7980619e9d6e
Reviewed-on: https://gerrit.libreoffice.org/20104
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/visitors.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 24c54462cd56..640c1e2a75b7 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -250,31 +250,31 @@ void SmCaretDrawingVisitor::DefaultVisit( SmNode* pNode ) void SmCaretPos2LineVisitor::Visit( SmTextNode* pNode ) { //Save device state - pDev->Push( PushFlags::FONT | PushFlags::TEXTCOLOR ); + mpDev->Push( PushFlags::FONT | PushFlags::TEXTCOLOR ); - long i = pos.Index; + long i = maPos.Index; - pDev->SetFont( pNode->GetFont( ) ); + mpDev->SetFont( pNode->GetFont( ) ); //Find coordinates - long left = pNode->GetLeft( ) + pDev->GetTextWidth( pNode->GetText( ), 0, i ); + long left = pNode->GetLeft( ) + mpDev->GetTextWidth( pNode->GetText( ), 0, i ); long top = pNode->GetTop( ); long height = pNode->GetHeight( ); - line = SmCaretLine( left, top, height ); + maLine = SmCaretLine( left, top, height ); //Restore device state - pDev->Pop( ); + mpDev->Pop( ); } void SmCaretPos2LineVisitor::DefaultVisit( SmNode* pNode ) { //Vertical line ( code from SmCaretDrawingVisitor ) Point p1 = pNode->GetTopLeft( ); - if( pos.Index == 1 ) + if( maPos.Index == 1 ) p1.Move( pNode->GetWidth( ), 0 ); - line = SmCaretLine( p1.X( ), p1.Y( ), pNode->GetHeight( ) ); + maLine = SmCaretLine( p1.X( ), p1.Y( ), pNode->GetHeight( ) ); } |