Kaydet (Commit) a0fa723e authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Page Break: fixed position of tab in RTL and added dirty hack for freezes

üst f923d188
...@@ -142,8 +142,11 @@ namespace ...@@ -142,8 +142,11 @@ namespace
m_pWin->Fade( true ); m_pWin->Fade( true );
} }
Point* pPtr = new Point( rMEvt.GetPosPixel() ); if ( !rMEvt.IsSynthetic() )
m_pWin->UpdatePosition( pPtr ); {
Point* pPtr = new Point( rMEvt.GetPosPixel() );
m_pWin->UpdatePosition( pPtr );
}
} }
void SwBreakDashedLine::MouseButtonDown( const MouseEvent& rMEvt ) void SwBreakDashedLine::MouseButtonDown( const MouseEvent& rMEvt )
...@@ -450,7 +453,14 @@ void SwPageBreakWin::UpdatePosition( const Point* pEvtPt ) ...@@ -450,7 +453,14 @@ void SwPageBreakWin::UpdatePosition( const Point* pEvtPt )
if ( m_pMousePt ) if ( m_pMousePt )
{ {
nBtnLeft = nLineLeft + m_pMousePt->X(); nBtnLeft = nLineLeft + m_pMousePt->X();
if ( ( nBtnLeft + aBtnSize.getWidth() ) > nLineRight )
if ( Application::GetSettings().GetLayoutRTL() )
{
nBtnLeft -= aBtnSize.getWidth();
if ( nBtnLeft < nLineLeft )
nBtnLeft = nLineLeft;
}
else if ( ( nBtnLeft + aBtnSize.getWidth() ) > nLineRight )
nBtnLeft = nLineRight - aBtnSize.getWidth(); nBtnLeft = nLineRight - aBtnSize.getWidth();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment