diff options
author | Andre Fischer <af@openoffice.org> | 2002-05-29 14:03:03 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2002-05-29 14:03:03 +0000 |
commit | f32401866c89b3f36202f8f727c8ccf7eb62a049 (patch) | |
tree | 117d9da7630180b4190deacfa2bdf3c8e3845534 /svx | |
parent | ce4c9fd77840ce5926c48b5a66ec7888819c6395 (diff) |
#95585# Added workarround for bug about unlocked solar mutex.
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx index 41a2df519c54..4ebb2c2832ea 100644 --- a/svx/source/accessibility/DescriptionGenerator.cxx +++ b/svx/source/accessibility/DescriptionGenerator.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DescriptionGenerator.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: af $ $Date: 2002-05-17 11:58:43 $ + * last change: $Author: af $ $Date: 2002-05-29 15:03:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -370,8 +370,15 @@ void DescriptionGenerator::AddColor (const OUString& sPropertyName, uno::Reference<container::XNameAccess> xNA (xColorTable, uno::UNO_QUERY); if (xNA.is()) { - // Get list of color names in order to iterate over the color table. - uno::Sequence<OUString> aNames = xNA->getElementNames(); + // Get list of color names in order to iterate over the color + // table. + uno::Sequence<OUString> aNames; + { + // Look the solar mutex here as workarround for missing lock + // in called function. + ::vos::OGuard aGuard (::Application::GetSolarMutex()); + aNames = xNA->getElementNames(); + } long i; for (i=0; i<aNames.getLength(); i++) { |