diff options
author | obo <obo@openoffice.org> | 2010-06-21 15:43:09 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-06-21 15:43:09 +0200 |
commit | 4db4970e2a2ac90b892e63b3824fbbc583a5460d (patch) | |
tree | 8fdb31a4afd604891232853d86b13c2efaace490 | |
parent | e14725fc4c225fc834196b581f5563221562d0c7 (diff) | |
parent | df2bc9a970d890d417c97810d41cc9686c30b975 (diff) |
CWS-TOOLING: integrate CWS impressaccessibility7
-rw-r--r-- | editeng/source/uno/unotext.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 45ef23c2be8f..ec7e76b144c0 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -260,12 +260,14 @@ SvxUnoTextRangeBase::SvxUnoTextRangeBase( const SvxEditSource* pSource, const Sv DBG_ASSERT(pSource,"SvxUnoTextRangeBase: I need a valid SvxEditSource!"); mpEditSource = pSource->Clone(); - ESelection aSelection; - ::GetSelection( aSelection, mpEditSource->GetTextForwarder() ); - SetSelection( aSelection ); + if (mpEditSource != NULL) + { + ESelection aSelection; + ::GetSelection( aSelection, mpEditSource->GetTextForwarder() ); + SetSelection( aSelection ); - if( mpEditSource ) mpEditSource->addRange( this ); + } #ifdef DEBUG gNumRanges.add(this); #endif @@ -348,7 +350,8 @@ void SvxUnoTextRangeBase::SetSelection( const ESelection& rSelection ) throw() OGuard aGuard( Application::GetSolarMutex() ); maSelection = rSelection; - CheckSelection( maSelection, mpEditSource->GetTextForwarder() ); + if (mpEditSource != NULL) + CheckSelection( maSelection, mpEditSource->GetTextForwarder() ); } // Interface XTextRange ( XText ) |