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
e2ebfc5d
Kaydet (Commit)
e2ebfc5d
authored
Kas 20, 2016
tarafından
Tamás Zolnai
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify this code.
Change-Id: I2a82d99277114135c4dde8ef83fc454329411c21
üst
f463d68c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
dptabres.cxx
sc/source/core/data/dptabres.cxx
+9
-6
No files found.
sc/source/core/data/dptabres.cxx
Dosyayı görüntüle @
e2ebfc5d
...
...
@@ -547,13 +547,16 @@ void ScDPAggData::Calculate( ScSubTotalFunc eFunc, const ScDPSubTotalState& rSub
fResult
=
(
fAux
-
fVal
*
fVal
/
(
double
)(
nCount
))
/
(
double
)
nCount
;
break
;
case
SUBTOTAL_FUNC_MED
:
if
(
mSortedValues
.
size
()
>
0
)
{
assert
(
mSortedValues
.
size
()
==
static_cast
<
size_t
>
(
nCount
));
if
((
mSortedValues
.
size
()
%
2
)
==
1
)
fResult
=
mSortedValues
[
mSortedValues
.
size
()
/
2
];
else
fResult
=
(
mSortedValues
[
mSortedValues
.
size
()
/
2
-
1
]
+
mSortedValues
[
mSortedValues
.
size
()
/
2
])
/
2.0
;
size_t
nSize
=
mSortedValues
.
size
();
if
(
nSize
>
0
)
{
assert
(
nSize
==
static_cast
<
size_t
>
(
nCount
));
if
((
nSize
%
2
)
==
1
)
fResult
=
mSortedValues
[
nSize
/
2
];
else
fResult
=
(
mSortedValues
[
nSize
/
2
-
1
]
+
mSortedValues
[
nSize
/
2
])
/
2.0
;
}
}
break
;
default
:
...
...
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