summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/generic/app/gensys.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/vcl/generic/app/gensys.cxx b/vcl/generic/app/gensys.cxx
index 0bd02eec81cc..f4edf1f61262 100644
--- a/vcl/generic/app/gensys.cxx
+++ b/vcl/generic/app/gensys.cxx
@@ -191,21 +191,9 @@ const char* SalGenericSystem::getFrameResName()
const char* SalGenericSystem::getFrameClassName()
{
- static OStringBuffer aClassName;
- if( aClassName.isEmpty() )
- {
- OUString aIni, aProduct;
- rtl::Bootstrap::get( "BRAND_BASE_DIR", aIni );
- aIni += "/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap" );
- rtl::Bootstrap aBootstrap( aIni );
- aBootstrap.getFrom( "ProductKey", aProduct );
-
- if( !aProduct.isEmpty() )
- aClassName.append( OUStringToOString( aProduct, osl_getThreadTextEncoding() ) );
- else
- aClassName.append( OUStringToOString( utl::ConfigManager::getProductName(), osl_getThreadTextEncoding()));
- }
- return aClassName.getStr();
+ // Someone somewhere hard coded LibreOffice. If frame class name is not LibreOffice, strange repaint
+ // problems occur with edit boxes, dropdown list boxes, etc.
+ return "LibreOffice";
}
#endif