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
68c6af8d
Kaydet (Commit)
68c6af8d
authored
Eki 28, 2011
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a memory leak with opacity gradients
üst
0faf9527
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
OdgGenerator.cxx
writerperfect/source/filter/OdgGenerator.cxx
+6
-8
No files found.
writerperfect/source/filter/OdgGenerator.cxx
Dosyayı görüntüle @
68c6af8d
...
@@ -1033,7 +1033,6 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
...
@@ -1033,7 +1033,6 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
if
(
mxStyle
[
"draw:fill"
]
&&
mxStyle
[
"draw:fill"
]
->
getStr
()
==
"gradient"
)
if
(
mxStyle
[
"draw:fill"
]
&&
mxStyle
[
"draw:fill"
]
->
getStr
()
==
"gradient"
)
{
{
bUseOpacityGradient
=
true
;
TagOpenElement
*
pDrawGradientElement
=
new
TagOpenElement
(
"draw:gradient"
);
TagOpenElement
*
pDrawGradientElement
=
new
TagOpenElement
(
"draw:gradient"
);
TagOpenElement
*
pDrawOpacityElement
=
new
TagOpenElement
(
"draw:opacity"
);
TagOpenElement
*
pDrawOpacityElement
=
new
TagOpenElement
(
"draw:opacity"
);
if
(
mxStyle
[
"draw:style"
])
if
(
mxStyle
[
"draw:style"
])
...
@@ -1127,14 +1126,10 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
...
@@ -1127,14 +1126,10 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
// Work around a mess in LibreOffice where both opacities of 100% are interpreted as complete transparency
// Work around a mess in LibreOffice where both opacities of 100% are interpreted as complete transparency
// Nevertheless, when one is different, immediately, they are interpreted correctly
// Nevertheless, when one is different, immediately, they are interpreted correctly
if
(
!
(
mxStyle
[
"libwpg:start-opacity"
]
&&
mxStyle
[
"libwpg:end-opacity"
])
if
(
mxStyle
[
"libwpg:start-opacity"
]
&&
mxStyle
[
"libwpg:end-opacity"
]
||
(
mxStyle
[
"libwpg:start-opacity"
]
->
getDouble
()
==
1.0
&&
mxStyle
[
"libwpg:end-opacity"
]
->
getDouble
()
==
1.0
))
&&
(
mxStyle
[
"libwpg:start-opacity"
]
->
getDouble
()
!=
1.0
||
mxStyle
[
"libwpg:end-opacity"
]
->
getDouble
()
!=
1.0
))
{
delete
pDrawOpacityElement
;
bUseOpacityGradient
=
false
;
}
else
{
{
bUseOpacityGradient
=
true
;
mGraphicsGradientStyles
.
push_back
(
pDrawOpacityElement
);
mGraphicsGradientStyles
.
push_back
(
pDrawOpacityElement
);
mGraphicsGradientStyles
.
push_back
(
new
TagCloseElement
(
"draw:opacity"
));
mGraphicsGradientStyles
.
push_back
(
new
TagCloseElement
(
"draw:opacity"
));
}
}
...
@@ -1162,6 +1157,9 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
...
@@ -1162,6 +1157,9 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
mGraphicsGradientStyles
.
push_back
(
pDrawGradientElement
);
mGraphicsGradientStyles
.
push_back
(
pDrawGradientElement
);
mGraphicsGradientStyles
.
push_back
(
new
TagCloseElement
(
"draw:gradient"
));
mGraphicsGradientStyles
.
push_back
(
new
TagCloseElement
(
"draw:gradient"
));
}
}
if
(
!
bUseOpacityGradient
)
delete
pDrawOpacityElement
;
}
}
TagOpenElement
*
pStyleStyleElement
=
new
TagOpenElement
(
"style:style"
);
TagOpenElement
*
pStyleStyleElement
=
new
TagOpenElement
(
"style:style"
);
...
...
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