mirror of
https://abf.rosa.ru/djam/libreoffice.git
synced 2025-02-23 18:43:00 +00:00
39 lines
2 KiB
Diff
39 lines
2 KiB
Diff
--- libreoffice-4.1.0/xmlhelp/source/cxxhelp/provider/databases.cxx.orig 2013-06-22 23:53:16.982431205 +0000
|
|
+++ libreoffice-4.1.0/xmlhelp/source/cxxhelp/provider/databases.cxx 2013-06-22 23:53:22.756426690 +0000
|
|
@@ -286,17 +286,33 @@
|
|
else
|
|
aSymbolsStyleName = "tango";
|
|
}
|
|
- OUString aZipName = OUString( "images_" );
|
|
- aZipName += aSymbolsStyleName;
|
|
- aZipName += OUString( ".zip" );
|
|
+ OUString aZipName;
|
|
+ if (aSymbolsStyleName.equals( OUString(RTL_CONSTASCII_USTRINGPARAM("default")) )) {
|
|
+ aZipName = OUString(RTL_CONSTASCII_USTRINGPARAM( "images.zip" ));
|
|
+ } else {
|
|
+ aZipName = OUString( "images_" );
|
|
+ aZipName += aSymbolsStyleName;
|
|
+ aZipName += OUString( ".zip" );
|
|
+ }
|
|
|
|
bFound = impl_getZipFile( m_aImagesZipPaths, aZipName, aImageZip );
|
|
}
|
|
|
|
+ // Fallbacks in case the configured style file was not found
|
|
+ if ( ! bFound )
|
|
+ bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images_oxygen.zip" )), aImageZip );
|
|
+ if ( ! bFound )
|
|
+ bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images_crystal.zip" )), aImageZip );
|
|
+
|
|
if ( ! bFound )
|
|
bFound = impl_getZipFile( m_aImagesZipPaths, OUString( "images.zip" ), aImageZip );
|
|
|
|
if ( ! bFound )
|
|
+ bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images_tango.zip" )), aImageZip );
|
|
+ if ( ! bFound )
|
|
+ bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images_hicontrast.zip" )), aImageZip );
|
|
+
|
|
+ if ( ! bFound )
|
|
aImageZip = OUString();
|
|
|
|
m_aImagesZipFileURL = OUStringToOString(
|