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
475cbbb2
Kaydet (Commit)
475cbbb2
authored
Agu 27, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove redundant if (zero is already handled earlier)
Change-Id: Iaab5763d4fbde431bac6f7ecbf4527ad889b6891
üst
cce0620a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
color.cxx
tools/source/generic/color.cxx
+2
-2
No files found.
tools/source/generic/color.cxx
Dosyayı görüntüle @
475cbbb2
...
@@ -319,13 +319,13 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent)
...
@@ -319,13 +319,13 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent)
basegfx
::
BColor
aBColor
=
basegfx
::
tools
::
rgb2hsl
(
getBColor
());
basegfx
::
BColor
aBColor
=
basegfx
::
tools
::
rgb2hsl
(
getBColor
());
double
fFactor
=
1.0
-
(
std
::
abs
(
double
(
n100thPercent
))
/
10000.0
);
double
fFactor
=
1.0
-
(
std
::
abs
(
double
(
n100thPercent
))
/
10000.0
);
double
fResult
=
0
;
double
fResult
;
if
(
n100thPercent
>
0
)
// tint
if
(
n100thPercent
>
0
)
// tint
{
{
fResult
=
aBColor
.
getBlue
()
*
fFactor
+
(
1.0
-
fFactor
);
fResult
=
aBColor
.
getBlue
()
*
fFactor
+
(
1.0
-
fFactor
);
}
}
else
if
(
n100thPercent
<
0
)
// shade
else
// shade
{
{
fResult
=
aBColor
.
getBlue
()
*
fFactor
;
fResult
=
aBColor
.
getBlue
()
*
fFactor
;
}
}
...
...
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