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
4bdde3af
Kaydet (Commit)
4bdde3af
authored
May 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
first condition is always true
Change-Id: Ie3934201d99c5dbd3107d6b184a1d575fa38d5c9
üst
df6d0af6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
imagemgr.cxx
svtools/source/misc/imagemgr.cxx
+20
-22
No files found.
svtools/source/misc/imagemgr.cxx
Dosyayı görüntüle @
4bdde3af
...
@@ -533,33 +533,31 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb
...
@@ -533,33 +533,31 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb
if
(
!
bFolder
)
if
(
!
bFolder
)
{
{
bool
bDetected
=
false
;
bool
bDetected
=
false
;
if
(
!
bDetected
)
if
(
rObject
.
GetProtocol
()
==
INetProtocol
::
PrivSoffice
)
{
{
if
(
rObject
.
GetProtocol
()
==
INetProtocol
::
PrivSoffice
)
OUString
aURLPath
=
sURL
.
copy
(
URL_PREFIX_PRIV_SOFFICE_LEN
);
OUString
aType
=
aURLPath
.
getToken
(
0
,
'/'
);
if
(
aType
==
"factory"
)
{
{
OUString
aURLPath
=
sURL
.
copy
(
URL_PREFIX_PRIV_SOFFICE_LEN
);
sDescription
=
GetDescriptionByFactory_Impl
(
aURLPath
.
copy
(
aURLPath
.
indexOf
(
'/'
)
+
1
)
);
OUString
aType
=
aURLPath
.
getToken
(
0
,
'/'
);
bDetected
=
true
;
if
(
aType
==
"factory"
)
{
sDescription
=
GetDescriptionByFactory_Impl
(
aURLPath
.
copy
(
aURLPath
.
indexOf
(
'/'
)
+
1
)
);
bDetected
=
true
;
}
}
}
}
if
(
!
bDetected
)
if
(
!
bDetected
)
{
// search a description by extension
bool
bExt
=
!
sExtension
.
isEmpty
();
if
(
bExt
)
{
{
// search a description by extension
sExtension
=
sExtension
.
toAsciiLowerCase
();
bool
bExt
=
!
sExtension
.
isEmpty
();
nResId
=
GetDescriptionId_Impl
(
sExtension
,
bShowExt
);
if
(
bExt
)
}
{
if
(
!
nResId
)
sExtension
=
sExtension
.
toAsciiLowerCase
();
{
nResId
=
GetDescriptionId_Impl
(
sExtension
,
bShowExt
);
nResId
=
STR_DESCRIPTION_FILE
;
}
bOnlyFile
=
bExt
;
if
(
!
nResId
)
{
nResId
=
STR_DESCRIPTION_FILE
;
bOnlyFile
=
bExt
;
}
}
}
}
}
}
}
...
...
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