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
6b35f10b
Kaydet (Commit)
6b35f10b
authored
Haz 25, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Tem 04, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert Svptrarr to std::vector<SwPosition*>
Change-Id: I1527f6c319d536286e1dc12c8c9ffa3b6a0e3713
üst
db36d833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
docredln.cxx
sw/source/core/doc/docredln.cxx
+9
-13
No files found.
sw/source/core/doc/docredln.cxx
Dosyayı görüntüle @
6b35f10b
...
...
@@ -3545,7 +3545,7 @@ void SwRedline::MoveFromSection()
{
SwDoc
*
pDoc
=
GetDoc
();
const
SwRedlineTbl
&
rTbl
=
pDoc
->
GetRedlineTbl
();
SvPtrarr
aBeforeArr
(
16
),
aBehindArr
(
16
)
;
std
::
vector
<
SwPosition
*>
aBeforeArr
,
aBehindArr
;
sal_uInt16
nMyPos
=
rTbl
.
GetPos
(
this
);
OSL_ENSURE
(
this
,
"this is not in the array?"
);
sal_Bool
bBreak
=
sal_False
;
...
...
@@ -3556,14 +3556,12 @@ void SwRedline::MoveFromSection()
bBreak
=
sal_True
;
if
(
rTbl
[
n
]
->
GetBound
(
sal_True
)
==
*
GetPoint
()
)
{
void
*
pTmp
=
&
rTbl
[
n
]
->
GetBound
(
sal_True
);
aBehindArr
.
Insert
(
pTmp
,
aBehindArr
.
Count
());
aBehindArr
.
push_back
(
&
rTbl
[
n
]
->
GetBound
(
sal_True
)
);
bBreak
=
sal_False
;
}
if
(
rTbl
[
n
]
->
GetBound
(
sal_False
)
==
*
GetPoint
()
)
{
void
*
pTmp
=
&
rTbl
[
n
]
->
GetBound
(
sal_False
);
aBehindArr
.
Insert
(
pTmp
,
aBehindArr
.
Count
()
);
aBehindArr
.
push_back
(
&
rTbl
[
n
]
->
GetBound
(
sal_False
)
);
bBreak
=
sal_False
;
}
}
...
...
@@ -3573,14 +3571,12 @@ void SwRedline::MoveFromSection()
bBreak
=
sal_True
;
if
(
rTbl
[
n
]
->
GetBound
(
sal_True
)
==
*
GetPoint
()
)
{
void
*
pTmp
=
&
rTbl
[
n
]
->
GetBound
(
sal_True
);
aBeforeArr
.
Insert
(
pTmp
,
aBeforeArr
.
Count
()
);
aBeforeArr
.
push_back
(
&
rTbl
[
n
]
->
GetBound
(
sal_True
)
);
bBreak
=
sal_False
;
}
if
(
rTbl
[
n
]
->
GetBound
(
sal_False
)
==
*
GetPoint
()
)
{
void
*
pTmp
=
&
rTbl
[
n
]
->
GetBound
(
sal_False
);
aBeforeArr
.
Insert
(
pTmp
,
aBeforeArr
.
Count
()
);
aBeforeArr
.
push_back
(
&
rTbl
[
n
]
->
GetBound
(
sal_False
)
);
bBreak
=
sal_False
;
}
}
...
...
@@ -3650,10 +3646,10 @@ void SwRedline::MoveFromSection()
// adjustment of redline table positions must take start and
// end into account, not point and mark.
for
(
n
=
0
;
n
<
aBeforeArr
.
Count
();
++
n
)
*
(
SwPosition
*
)
aBeforeArr
[
n
]
=
*
Start
();
for
(
n
=
0
;
n
<
aBehindArr
.
Count
();
++
n
)
*
(
SwPosition
*
)
aBehindArr
[
n
]
=
*
End
();
for
(
n
=
0
;
n
<
aBeforeArr
.
size
();
++
n
)
*
aBeforeArr
[
n
]
=
*
Start
();
for
(
n
=
0
;
n
<
aBehindArr
.
size
();
++
n
)
*
aBehindArr
[
n
]
=
*
End
();
}
else
InvalidateRange
();
...
...
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