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
91a17ad2
Kaydet (Commit)
91a17ad2
authored
Ock 16, 2012
tarafından
Ariel Constenla-Haile
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i118798 - Fix Pyuno dead-lock
üst
cdae5f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
pyuno_adapter.cxx
pyuno/source/module/pyuno_adapter.cxx
+8
-8
No files found.
pyuno/source/module/pyuno_adapter.cxx
Dosyayı görüntüle @
91a17ad2
...
@@ -363,20 +363,20 @@ Any Adapter::invoke( const OUString &aFunctionName,
...
@@ -363,20 +363,20 @@ Any Adapter::invoke( const OUString &aFunctionName,
void
Adapter
::
setValue
(
const
OUString
&
aPropertyName
,
const
Any
&
value
)
void
Adapter
::
setValue
(
const
OUString
&
aPropertyName
,
const
Any
&
value
)
throw
(
UnknownPropertyException
,
CannotConvertException
,
InvocationTargetException
,
RuntimeException
)
throw
(
UnknownPropertyException
,
CannotConvertException
,
InvocationTargetException
,
RuntimeException
)
{
{
if
(
!
hasProperty
(
aPropertyName
)
)
{
OUStringBuffer
buf
;
buf
.
appendAscii
(
"pyuno::Adapater: Property "
).
append
(
aPropertyName
);
buf
.
appendAscii
(
" is unknown."
);
throw
UnknownPropertyException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
}
PyThreadAttach
guard
(
mInterpreter
);
PyThreadAttach
guard
(
mInterpreter
);
try
try
{
{
Runtime
runtime
;
Runtime
runtime
;
PyRef
obj
=
runtime
.
any2PyObject
(
value
);
PyRef
obj
=
runtime
.
any2PyObject
(
value
);
if
(
!
hasProperty
(
aPropertyName
)
)
{
OUStringBuffer
buf
;
buf
.
appendAscii
(
"pyuno::Adapater: Property "
).
append
(
aPropertyName
);
buf
.
appendAscii
(
" is unknown."
);
throw
UnknownPropertyException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
}
PyObject_SetAttrString
(
PyObject_SetAttrString
(
mWrappedObject
.
get
(),
(
char
*
)
TO_ASCII
(
aPropertyName
),
obj
.
get
()
);
mWrappedObject
.
get
(),
(
char
*
)
TO_ASCII
(
aPropertyName
),
obj
.
get
()
);
raiseInvocationTargetExceptionWhenNeeded
(
runtime
);
raiseInvocationTargetExceptionWhenNeeded
(
runtime
);
...
...
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