Fix typos

Change-Id: I92f796731bba74b5967c9a0b043e67ecb6db2b81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210202
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
This commit is contained in:
Andrea Gelmini
2026-08-29 13:39:33 +02:00
committed by Julien Nabet
parent 5e3f6ad746
commit 03a6568ab2
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -715,7 +715,7 @@ void SwTextFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const&
}
// We don't want to be interrupted while painting.
// Do that after thr Format()!
// Do that after the Format()!
TextFrameLockGuard aLock(const_cast<SwTextFrame*>(this));
// We only paint the part of the TextFrame which changed, is within the
@@ -723,7 +723,7 @@ void SwTextFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const&
// One could think that the area rRect _needs_ to be painted, although
// rRepaint is set. Indeed, we cannot avoid this problem from a formal
// perspective. Luckily we can assume rRepaint to be empty when we need
// paint the while Frame.
// to paint the whole Frame.
SwParaPortion *pPara = const_cast<SwTextFrame*>(this)->EnsurePara();
SwRepaint &rRepaint = pPara->GetRepaint();
@@ -737,7 +737,7 @@ void SwTextFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const&
rRepaint.SetOffset( 0 );
}
// Ge the String for painting. The length is of special interest.
// Get the String for painting. The length is of special interest.
// Rectangle
OSL_ENSURE( ! IsSwapped(), "A frame is swapped before Paint" );
+2 -2
View File
@@ -767,12 +767,12 @@ void SwTextPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
// If current underline matches the common underline font, we continue
// to use the common underline font.
// Bug 120769:Color of underline display wrongly
// Bug 120769: Color of underline displayed wrongly
if ( GetInfo().GetUnderFnt() &&
GetInfo().GetUnderFnt()->GetFont().GetUnderline() == GetFnt()->GetUnderline() &&
GetInfo().GetFont() && GetInfo().GetFont()->GetUnderColor() != COL_AUTO )
return;
//Bug 120769(End)
// Bug 120769 (End)
OSL_ENSURE( GetFnt() && LINESTYLE_NONE != GetFnt()->GetUnderline(),
"CheckSpecialUnderline without underlined font" );
+2 -2
View File
@@ -871,7 +871,7 @@ void SwBookmarkPortion::Paint( const SwTextPaintInfo &rInf ) const
nTypePos = mnHalfCharWidth * 3/4; // start label on the opening bracket
}
// MarkKind::Point: drawn I-beam (e.g. U+2336) as overlapping ][
// MarkKind::Point: draw I-beam (e.g. U+2336) as overlapping ][
if ( std::get<0>(it) == SwScriptInfo::MarkKind::Point )
{
aNewPos.AdjustX(-mnHalfCharWidth * 5/16);
@@ -879,7 +879,7 @@ void SwBookmarkPortion::Paint( const SwTextPaintInfo &rInf ) const
rInf.DrawText( aOutString, *this );
// when the overlapping vertical lines are 50 pixel width on the screen,
// this distance (half width * 5/8) still results precise overlapping
// this distance (half width * 5/8) still results in precise overlapping
aNewPos.AdjustX(mnHalfCharWidth * 5/8);
const_cast< SwTextPaintInfo& >( rInf ).SetPos( aNewPos );
aOutString = OUString('[');