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,9 +142,12 @@ namespace
m_pWin->Fade( true );
}
if ( !rMEvt.IsSynthetic() )
{
Point* pPtr = new Point( rMEvt.GetPosPixel() );
m_pWin->UpdatePosition( pPtr );
}
}
void SwBreakDashedLine::MouseButtonDown( const MouseEvent& rMEvt )
{
......@@ -450,7 +453,14 @@ void SwPageBreakWin::UpdatePosition( const Point* pEvtPt )
if ( m_pMousePt )
{
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();
}
......
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