diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-01-20 11:50:13 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-01-20 11:50:13 +0000 |
commit | ef78368dd6015ef648d3e7be7176b7d8c252499d (patch) | |
tree | 69b988a2c85620e4754e4ecf18ab67557532a8c0 /dtrans/source | |
parent | 5c29a4ef3f95f6ecb9cabd867c937ca0f2b9641f (diff) |
INTEGRATION: CWS vcl49 (1.74.8); FILE MERGED
2005/12/06 17:14:16 pl 1.74.8.1: #123983# initialize text property in case conversion fails
Diffstat (limited to 'dtrans/source')
-rw-r--r-- | dtrans/source/X11/X11_selection.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dtrans/source/X11/X11_selection.cxx b/dtrans/source/X11/X11_selection.cxx index bd4e7463e423..ded95cbaa34a 100644 --- a/dtrans/source/X11/X11_selection.cxx +++ b/dtrans/source/X11/X11_selection.cxx @@ -4,9 +4,9 @@ * * $RCSfile: X11_selection.cxx,v $ * - * $Revision: 1.75 $ + * $Revision: 1.76 $ * - * last change: $Author: obo $ $Date: 2006-01-16 13:30:30 $ + * last change: $Author: obo $ $Date: 2006-01-20 12:50:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -545,6 +545,10 @@ OString SelectionManager::convertToCompound( const OUString& rText ) { MutexGuard aGuard( m_aMutex ); XTextProperty aProp; + aProp.value = NULL; + aProp.encoding = XA_STRING; + aProp.format = 8; + aProp.nitems = 0; OString aRet( rText.getStr(), rText.getLength(), osl_getThreadTextEncoding() ); char* pT = const_cast<char*>(aRet.getStr()); |