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
8041285b
Kaydet (Commit)
8041285b
authored
Ara 19, 2012
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
resolved fdo#54344 let date pattern match overrule incomplete format match
Change-Id: I69a0c62ab5b4da036a77bd6c3b2baec0af7c8339
üst
ae9676e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
zforfind.cxx
svl/source/numbers/zforfind.cxx
+11
-1
No files found.
svl/source/numbers/zforfind.cxx
Dosyayı görüntüle @
8041285b
...
@@ -1678,11 +1678,21 @@ input for the following reasons:
...
@@ -1678,11 +1678,21 @@ input for the following reasons:
{
{
case
0
:
// not found
case
0
:
// not found
{
{
bool
bHadExact
;
sal_uInt32
nExactDateOrder
=
(
bFormatTurn
?
sal_uInt32
nExactDateOrder
=
(
bFormatTurn
?
pFormat
->
GetExactDateOrder
()
:
pFormat
->
GetExactDateOrder
()
:
GetDatePatternOrder
());
GetDatePatternOrder
());
bool
bIsExact
=
(
0xff
<
nExactDateOrder
&&
nExactDateOrder
<=
0xffff
);
bool
bIsExact
=
(
0xff
<
nExactDateOrder
&&
nExactDateOrder
<=
0xffff
);
if
(
!
bIsExact
&&
bFormatTurn
&&
IsAcceptedDatePattern
(
nNums
[
0
]))
{
// If input does not match format but pattern, use pattern
// instead, even if eEDF==NF_EVALDATEFORMAT_FORMAT_INTL.
// For example, format has "Y-M-D" and pattern is "D.M.",
// input with 2 numbers can't match format and 31.12. would
// lead to 1931-12-01 (fdo#54344)
nExactDateOrder
=
GetDatePatternOrder
();
bIsExact
=
(
0xff
<
nExactDateOrder
&&
nExactDateOrder
<=
0xffff
);
}
bool
bHadExact
;
if
(
bIsExact
)
if
(
bIsExact
)
{
{
// formatted as date and exactly 2 parts
// formatted as date and exactly 2 parts
...
...
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