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
fc63faa8
Kaydet (Commit)
fc63faa8
authored
Eyl 09, 2002
tarafından
Daniel Vogelheim
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#99657# fixed assertion when loading/saving background images
üst
53e2ecf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
XMLTextPropertySetContext.cxx
xmloff/source/text/XMLTextPropertySetContext.cxx
+16
-7
txtexppr.cxx
xmloff/source/text/txtexppr.cxx
+5
-6
No files found.
xmloff/source/text/XMLTextPropertySetContext.cxx
Dosyayı görüntüle @
fc63faa8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLTextPropertySetContext.cxx,v $
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
* last change: $Author: dvo $ $Date: 2002-0
8-29 17:47:22
$
* last change: $Author: dvo $ $Date: 2002-0
9-09 17:12:18
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -152,24 +152,33 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext(
break
;
case
CTF_BACKGROUND_URL
:
{
DBG_ASSERT
(
rProp
.
mnIndex
>=
2
&&
CTF_BACKGROUND_TRANSPARENCY
==
xMapper
->
getPropertySetMapper
()
->
GetEntryContextId
(
rProp
.
mnIndex
-
3
)
&&
CTF_BACKGROUND_POS
==
xMapper
->
getPropertySetMapper
()
->
GetEntryContextId
(
rProp
.
mnIndex
-
2
)
&&
CTF_BACKGROUND_FILTER
==
xMapper
->
getPropertySetMapper
()
->
GetEntryContextId
(
rProp
.
mnIndex
-
1
),
"invalid property map!"
);
// #99657# Transparency might be there as well... but doesn't have
// to. Thus, this is checked with an if, rather than with an assertion.
sal_Int32
nTranspIndex
=
-
1
;
if
(
(
rProp
.
mnIndex
>=
3
)
&&
(
CTF_BACKGROUND_TRANSPARENCY
==
xMapper
->
getPropertySetMapper
()
->
GetEntryContextId
(
rProp
.
mnIndex
-
3
)
)
)
nTranspIndex
=
rProp
.
mnIndex
-
3
;
pContext
=
new
XMLBackgroundImageContext
(
GetImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
rProp
,
rProp
.
mnIndex
-
2
,
rProp
.
mnIndex
-
1
,
rProp
.
mnIndex
-
3
,
nTranspIndex
,
rProperties
);
break
;
}
break
;
#ifndef SVX_LIGHT
case
CTF_SECTION_FOOTNOTE_END
:
pContext
=
new
XMLSectionFootnoteConfigImport
(
...
...
xmloff/source/text/txtexppr.cxx
Dosyayı görüntüle @
fc63faa8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: txtexppr.cxx,v $
*
* $Revision: 1.
19
$
* $Revision: 1.
20
$
*
* last change: $Author: dvo $ $Date: 2002-0
8-29 17:47:22
$
* last change: $Author: dvo $ $Date: 2002-0
9-09 17:12:19
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -141,11 +141,10 @@ void XMLTextExportPropertySetMapper::handleElementItem(
if
(
pProperties
&&
nIdx
>=
3
)
{
const
XMLPropertyState
&
rTrans
=
(
*
pProperties
)[
nIdx
-
3
];
DBG_ASSERT
(
CTF_BACKGROUND_TRANSPARENCY
==
getPropertySetMapper
()
->
GetEntryContextId
(
rTrans
.
mnIndex
),
"invalid property map: pos expected"
);
// #99657# transparency may be there, but doesn't have to be.
// If it's there, it must be in the right position.
if
(
CTF_BACKGROUND_TRANSPARENCY
==
getPropertySetMapper
()
->
GetEntryContextId
(
rTrans
.
mnIndex
)
)
->
GetEntryContextId
(
rTrans
.
mnIndex
)
)
pTrans
=
&
rTrans
.
maValue
;
const
XMLPropertyState
&
rPos
=
(
*
pProperties
)[
nIdx
-
2
];
...
...
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