diff options
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 13 | ||||
-rw-r--r-- | cui/source/inc/hangulhanjadlg.hxx | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index ea931c60d8e5..cbc49427bf57 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -1354,12 +1354,12 @@ namespace svx if( _bUp ) { if( !m_pPrev ) - bRet = m_rScrollBar->GetThumbPos() > m_rScrollBar->GetRangeMin(); + bRet = m_pScrollBar->GetThumbPos() > m_pScrollBar->GetRangeMin(); } else { if( !m_pNext ) - bRet = m_rScrollBar->GetThumbPos() < ( m_rScrollBar->GetRangeMax() - 4 ); + bRet = m_pScrollBar->GetThumbPos() < ( m_pScrollBar->GetRangeMax() - 4 ); } return bRet; @@ -1370,13 +1370,16 @@ namespace svx const Link& rLoseFocusHdl = GetLoseFocusHdl(); if( rLoseFocusHdl.IsSet() ) rLoseFocusHdl.Call( this ); - m_rScrollBar->SetThumbPos( m_rScrollBar->GetThumbPos() + ( _bUp? -1 : 1 ) ); + m_pScrollBar->SetThumbPos( m_pScrollBar->GetThumbPos() + ( _bUp? -1 : 1 ) ); ( static_cast< HangulHanjaEditDictDialog* >( GetParentDialog() ) )->UpdateScrollbar(); } SuggestionEdit::SuggestionEdit( Window* pParent, WinBits nBits ) - :Edit( pParent, nBits ) + : Edit(pParent, nBits) + , m_pPrev(NULL) + , m_pNext(NULL) + , m_pScrollBar(NULL) { } @@ -1435,7 +1438,7 @@ namespace svx void SuggestionEdit::init( ScrollBar* pScrollBar, SuggestionEdit* pPrev, SuggestionEdit* pNext) { - m_rScrollBar = pScrollBar; + m_pScrollBar = pScrollBar; m_pPrev = pPrev; m_pNext = pNext; } diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx index 47429bb24f7b..6b1828addf76 100644 --- a/cui/source/inc/hangulhanjadlg.hxx +++ b/cui/source/inc/hangulhanjadlg.hxx @@ -255,7 +255,7 @@ namespace svx private: SuggestionEdit* m_pPrev; SuggestionEdit* m_pNext; - ScrollBar* m_rScrollBar; + ScrollBar* m_pScrollBar; bool ShouldScroll( bool _bUp ) const; void DoJump( bool _bUp ); |