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
c6477b9d
Kaydet (Commit)
c6477b9d
authored
Agu 25, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
nitpick no need for an extra indentation level
Change-Id: Id7ab390cc28e83ac0ca6b9fff1c172ca46e88a68
üst
bb11009a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
25 deletions
+23
-25
viewfun6.cxx
sc/source/ui/view/viewfun6.cxx
+23
-25
No files found.
sc/source/ui/view/viewfun6.cxx
Dosyayı görüntüle @
c6477b9d
...
@@ -399,32 +399,30 @@ void ScViewFunc::InsertCurrentTime(short nReqFmt, const OUString& rUndoStr)
...
@@ -399,32 +399,30 @@ void ScViewFunc::InsertCurrentTime(short nReqFmt, const OUString& rUndoStr)
}
}
break
;
break
;
case
NUMBERFORMAT_DATETIME
:
case
NUMBERFORMAT_DATETIME
:
switch
(
nCurNumFormatType
)
{
{
switch
(
nCurNumFormatType
)
case
NUMBERFORMAT_DATE
:
{
{
case
NUMBERFORMAT_DATE
:
double
fDate
=
rtl
::
math
::
approxFloor
(
fCell
);
{
Time
aActTime
(
Time
::
SYSTEM
);
double
fDate
=
rtl
::
math
::
approxFloor
(
fCell
);
fVal
=
fDate
+
aActTime
.
GetTimeInDays
();
Time
aActTime
(
Time
::
SYSTEM
);
}
fVal
=
fDate
+
aActTime
.
GetTimeInDays
();
break
;
}
case
NUMBERFORMAT_TIME
:
break
;
{
case
NUMBERFORMAT_TIME
:
double
fTime
=
fCell
-
rtl
::
math
::
approxFloor
(
fCell
);
{
Date
aActDate
(
Date
::
SYSTEM
);
double
fTime
=
fCell
-
rtl
::
math
::
approxFloor
(
fCell
);
fVal
=
(
aActDate
-
*
pFormatter
->
GetNullDate
())
+
fTime
;
Date
aActDate
(
Date
::
SYSTEM
);
}
fVal
=
(
aActDate
-
*
pFormatter
->
GetNullDate
())
+
fTime
;
break
;
}
default
:
break
;
{
default
:
DateTime
aActDateTime
(
DateTime
::
SYSTEM
);
{
// Converting the null date to DateTime forces the
DateTime
aActDateTime
(
DateTime
::
SYSTEM
);
// correct operator-() to be used, resulting in a
// Converting the null date to DateTime forces the
// fractional date+time instead of only date value.
// correct operator-() to be used, resulting in a
fVal
=
aActDateTime
-
DateTime
(
*
pFormatter
->
GetNullDate
());
// fractional date+time instead of only date value.
}
fVal
=
aActDateTime
-
DateTime
(
*
pFormatter
->
GetNullDate
());
}
}
}
}
break
;
break
;
}
}
...
...
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