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
3e0fc218
Kaydet (Commit)
3e0fc218
authored
Tem 18, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF import filter review: the page descriptor fiasco
Patch by: Michael Stahl
üst
59e19330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
swparrtf.cxx
sw/source/filter/rtf/swparrtf.cxx
+10
-7
No files found.
sw/source/filter/rtf/swparrtf.cxx
Dosyayı görüntüle @
3e0fc218
...
...
@@ -3250,6 +3250,7 @@ void SwRTFParser::ReadPageDescTbl()
sal_uInt16
nCols
=
USHRT_MAX
,
nColSpace
=
USHRT_MAX
,
nAktCol
=
0
;
SvUShorts
aColumns
;
::
std
::
map
<
const
SwPageDesc
*
,
sal_uInt16
>
aFollowMap
;
//store index of following page descriptors
while
(
nNumOpenBrakets
&&
IsParserWorking
()
)
{
...
...
@@ -3323,10 +3324,9 @@ void SwRTFParser::ReadPageDescTbl()
break
;
case
RTF_PGDSCNXT
:
// setze erstmal nur die Nummer als Follow. Am Ende der
// Tabelle wird diese entsprechend korrigiert !!
// store index of follow in map; will be fixed up later
if
(
nTokenValue
)
pPg
->
SetFollow
(
(
const
SwPageDesc
*
)
nTokenValue
);
aFollowMap
.
insert
(
::
std
::
pair
<
const
SwPageDesc
*
,
sal_uInt16
>
(
pPg
,
nTokenValue
)
);
else
pPg
->
SetFollow
(
&
const_cast
<
const
SwDoc
*>
(
pDoc
)
->
GetPageDesc
(
0
)
);
...
...
@@ -3507,10 +3507,13 @@ void SwRTFParser::ReadPageDescTbl()
for
(
nPos
=
0
;
nPos
<
pDoc
->
GetPageDescCnt
();
++
nPos
)
{
SwPageDesc
*
pPgDsc
=
&
pDoc
->
_GetPageDesc
(
nPos
);
if
(
(
sal_uInt16
)(
long
)
pPgDsc
->
GetFollow
()
<
pDoc
->
GetPageDescCnt
()
)
pPgDsc
->
SetFollow
(
&
const_cast
<
const
SwDoc
*>
(
pDoc
)
->
GetPageDesc
((
sal_uInt16
)(
long
)
pPgDsc
->
GetFollow
()));
std
::
map
<
const
SwPageDesc
*
,
sal_uInt16
>::
const_iterator
aIter
=
aFollowMap
.
find
(
pPgDsc
);
if
(
aIter
!=
aFollowMap
.
end
())
{
if
((
*
aIter
).
second
<
pDoc
->
GetPageDescCnt
())
pPgDsc
->
SetFollow
(
&
const_cast
<
const
SwDoc
*>
(
pDoc
)
->
GetPageDesc
((
*
aIter
).
second
));
}
}
SetChkStyleAttr
(
bSaveChkStyleAttr
);
...
...
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