Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6de7da38
Kaydet (Commit)
6de7da38
authored
Kas 21, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
longparas: these are really xub_StrLens
Change-Id: Ia754de347f277a07479e4056b7c9a03534a3dab4
üst
522fd111
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
redline.hxx
sw/inc/redline.hxx
+1
-1
docredln.cxx
sw/source/core/doc/docredln.cxx
+10
-10
No files found.
sw/inc/redline.hxx
Dosyayı görüntüle @
6de7da38
...
@@ -247,7 +247,7 @@ public:
...
@@ -247,7 +247,7 @@ public:
void
ShowOriginal
(
sal_uInt16
nLoop
=
0
);
void
ShowOriginal
(
sal_uInt16
nLoop
=
0
);
/// Calculates the intersection with text node number nNdIdx.
/// Calculates the intersection with text node number nNdIdx.
void
CalcStartEnd
(
sal_uLong
nNdIdx
,
sal_uInt16
&
nStart
,
sal_uInt16
&
n
End
)
const
;
void
CalcStartEnd
(
sal_uLong
nNdIdx
,
xub_StrLen
&
rStart
,
xub_StrLen
&
r
End
)
const
;
/// Initiate the layout.
/// Initiate the layout.
void
InvalidateRange
();
void
InvalidateRange
();
...
...
sw/source/core/doc/docredln.cxx
Dosyayı görüntüle @
6de7da38
...
@@ -3258,36 +3258,36 @@ void SwRedline::InvalidateRange() // trigger the Layout
...
@@ -3258,36 +3258,36 @@ void SwRedline::InvalidateRange() // trigger the Layout
/** Calculates the start and end position of the intersection rTmp and
/** Calculates the start and end position of the intersection rTmp and
text node nNdIdx */
text node nNdIdx */
void
SwRedline
::
CalcStartEnd
(
sal_uLong
nNdIdx
,
sal_uInt16
&
nStart
,
sal_uInt16
&
n
End
)
const
void
SwRedline
::
CalcStartEnd
(
sal_uLong
nNdIdx
,
xub_StrLen
&
rStart
,
xub_StrLen
&
r
End
)
const
{
{
const
SwPosition
*
pRStt
=
Start
(),
*
pREnd
=
End
();
const
SwPosition
*
pRStt
=
Start
(),
*
pREnd
=
End
();
if
(
pRStt
->
nNode
<
nNdIdx
)
if
(
pRStt
->
nNode
<
nNdIdx
)
{
{
if
(
pREnd
->
nNode
>
nNdIdx
)
if
(
pREnd
->
nNode
>
nNdIdx
)
{
{
n
Start
=
0
;
// Paragraph is completely enclosed
r
Start
=
0
;
// Paragraph is completely enclosed
n
End
=
STRING_LEN
;
r
End
=
STRING_LEN
;
}
}
else
else
{
{
OSL_ENSURE
(
pREnd
->
nNode
==
nNdIdx
,
OSL_ENSURE
(
pREnd
->
nNode
==
nNdIdx
,
"SwRedlineItr::Seek: GetRedlinePos Error"
);
"SwRedlineItr::Seek: GetRedlinePos Error"
);
n
Start
=
0
;
// Paragraph is overlapped in the beginning
r
Start
=
0
;
// Paragraph is overlapped in the beginning
n
End
=
pREnd
->
nContent
.
GetIndex
();
r
End
=
pREnd
->
nContent
.
GetIndex
();
}
}
}
}
else
if
(
pRStt
->
nNode
==
nNdIdx
)
else
if
(
pRStt
->
nNode
==
nNdIdx
)
{
{
n
Start
=
pRStt
->
nContent
.
GetIndex
();
r
Start
=
pRStt
->
nContent
.
GetIndex
();
if
(
pREnd
->
nNode
==
nNdIdx
)
if
(
pREnd
->
nNode
==
nNdIdx
)
n
End
=
pREnd
->
nContent
.
GetIndex
();
// Within the Paragraph
r
End
=
pREnd
->
nContent
.
GetIndex
();
// Within the Paragraph
else
else
n
End
=
STRING_LEN
;
// Paragraph is overlapped in the end
r
End
=
STRING_LEN
;
// Paragraph is overlapped in the end
}
}
else
else
{
{
n
Start
=
STRING_LEN
;
r
Start
=
STRING_LEN
;
n
End
=
STRING_LEN
;
r
End
=
STRING_LEN
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment