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
4ccb4bda
Kaydet (Commit)
4ccb4bda
authored
Nis 20, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46074 Ignore corrupted items in Recent Documents
üst
cf0186de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
historyoptions.cxx
unotools/source/config/historyoptions.cxx
+28
-10
No files found.
unotools/source/config/historyoptions.cxx
Dosyayı görüntüle @
4ccb4bda
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <cassert>
#include <deque>
#include <deque>
#include <algorithm>
#include <algorithm>
...
@@ -391,20 +392,37 @@ Sequence< Sequence< PropertyValue > > SvtHistoryOptions_Impl::GetList( EHistoryT
...
@@ -391,20 +392,37 @@ Sequence< Sequence< PropertyValue > > SvtHistoryOptions_Impl::GetList( EHistoryT
const
sal_Int32
nLength
=
xOrderList
->
getElementNames
().
getLength
();
const
sal_Int32
nLength
=
xOrderList
->
getElementNames
().
getLength
();
Sequence
<
Sequence
<
PropertyValue
>
>
aRet
(
nLength
);
Sequence
<
Sequence
<
PropertyValue
>
>
aRet
(
nLength
);
sal_Int32
nCount
=
0
;
for
(
sal_Int32
nItem
=
0
;
nItem
<
nLength
;
++
nItem
)
for
(
sal_Int32
nItem
=
0
;
nItem
<
nLength
;
++
nItem
)
{
{
::
rtl
::
OUString
sUrl
;
try
xOrderList
->
getByName
(
::
rtl
::
OUString
::
valueOf
(
nItem
))
>>=
xSet
;
{
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sHistoryItemRef
))
>>=
sUrl
;
::
rtl
::
OUString
sUrl
;
xOrderList
->
getByName
(
::
rtl
::
OUString
::
valueOf
(
nItem
))
>>=
xSet
;
xItemList
->
getByName
(
sUrl
)
>>=
xSet
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sHistoryItemRef
))
>>=
sUrl
;
seqProperties
[
s_nOffsetURL
].
Value
<<=
sUrl
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sFilter
))
>>=
seqProperties
[
s_nOffsetFilter
].
Value
;
xItemList
->
getByName
(
sUrl
)
>>=
xSet
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sTitle
))
>>=
seqProperties
[
s_nOffsetTitle
].
Value
;
seqProperties
[
s_nOffsetURL
].
Value
<<=
sUrl
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sPassword
))
>>=
seqProperties
[
s_nOffsetPassword
].
Value
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sFilter
))
>>=
seqProperties
[
s_nOffsetFilter
].
Value
;
aRet
[
nItem
]
=
seqProperties
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sTitle
))
>>=
seqProperties
[
s_nOffsetTitle
].
Value
;
xSet
->
getPropertyValue
(
rtl
::
OUString
(
s_sPassword
))
>>=
seqProperties
[
s_nOffsetPassword
].
Value
;
aRet
[
nCount
++
]
=
seqProperties
;
}
catch
(
const
css
::
uno
::
Exception
&
ex
)
{
// <https://bugs.freedesktop.org/show_bug.cgi?id=46074>
// "FILEOPEN: No Recent Documents..." discusses a problem
// with corrupted /org.openoffice.Office/Histories/Histories
// configuration items; to work around that problem, simply
// ignore such corrupted individual items here, so that at
// least newly added items are successfully reported back
// from this function:
LogHelper
::
logIt
(
ex
);
}
}
}
assert
(
nCount
<=
nLength
);
aRet
.
realloc
(
nCount
);
seqReturn
=
aRet
;
seqReturn
=
aRet
;
}
}
}
}
...
...
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