diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:04:16 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:04:16 +0000 |
commit | 2030f3d4d23e2d198255624c4fcdf394ce5c71b1 (patch) | |
tree | 9478ee5b89482a61befc5ccc669aff6db6971825 | |
parent | 59aa2e527a22ed233a849bd02fad0533afc69a93 (diff) |
INTEGRATION: CWS vclttfix (1.53.52); FILE MERGED
2007/08/08 16:18:17 pl 1.53.52.1: #i76541# workaround for testtool
-rw-r--r-- | vcl/unx/source/app/saldata.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/vcl/unx/source/app/saldata.cxx b/vcl/unx/source/app/saldata.cxx index a5ab6d857cca..bf0700c997db 100644 --- a/vcl/unx/source/app/saldata.cxx +++ b/vcl/unx/source/app/saldata.cxx @@ -4,9 +4,9 @@ * * $RCSfile: saldata.cxx,v $ * - * $Revision: 1.53 $ + * $Revision: 1.54 $ * - * last change: $Author: rt $ $Date: 2007-07-03 14:07:39 $ + * last change: $Author: kz $ $Date: 2007-10-09 15:04:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -306,8 +306,21 @@ X11SalData::X11SalData() m_pSalDisplay = NULL; m_pInstance = NULL; m_pPlugin = NULL; + m_bIsTesttool = false; hMainThread_ = pthread_self(); + + sal_uInt32 nArgs = osl_getCommandArgCount(); + for( sal_uInt32 i = 0; i < nArgs; i++ ) + { + rtl::OUString aArg; + osl_getCommandArg( i, &aArg.pData ); + if( aArg.equalsAscii( "-enableautomation" ) ) + { + m_bIsTesttool = true; + break; + } + } } X11SalData::~X11SalData() |