Kaydet (Commit) 5e992f88 authored tarafından Miklos Vajna's avatar Miklos Vajna

n#793998 SwTxtCursor::GetCharRect: respect TabOverMargin compat mode

Change-Id: I47280399bd9e0757365db8f4f1930efd0a340424
üst cb6d8b90
......@@ -1211,7 +1211,9 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const xub_StrLen nOfst,
pCMS->p2Lines->aPortion.Pos().Y() += aCharPos.Y();
}
if( pOrig->Left() > nTmpRight )
const bool bTabOverMargin = GetTxtFrm()->GetTxtNode()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::TAB_OVER_MARGIN);
// Make sure the cursor respects the right margin, unless in compat mode, where the tab size has priority over the margin size.
if( pOrig->Left() > nTmpRight && !bTabOverMargin)
pOrig->Pos().X() = nTmpRight;
if( nMax )
......
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